Weapon dependant damage for some rogue talents
--HG-- branch : trunk
This commit is contained in:
@@ -4492,6 +4492,10 @@ void Spell::SpellDamageWeaponDmg(uint32 i)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case SPELLFAMILY_ROGUE:
|
case SPELLFAMILY_ROGUE:
|
||||||
|
{
|
||||||
|
// Fan of Knives, Hemorrhage, Ghostly Strike
|
||||||
|
if ((m_spellInfo->SpellFamilyFlags[1] & 0x40000)
|
||||||
|
|| (m_spellInfo->SpellFamilyFlags[0] & 0x6000000))
|
||||||
{
|
{
|
||||||
// Hemorrhage
|
// Hemorrhage
|
||||||
if (m_spellInfo->SpellFamilyFlags[0] & 0x2000000)
|
if (m_spellInfo->SpellFamilyFlags[0] & 0x2000000)
|
||||||
@@ -4499,9 +4503,6 @@ void Spell::SpellDamageWeaponDmg(uint32 i)
|
|||||||
if (m_caster->GetTypeId() == TYPEID_PLAYER)
|
if (m_caster->GetTypeId() == TYPEID_PLAYER)
|
||||||
m_caster->ToPlayer()->AddComboPoints(unitTarget, 1, this);
|
m_caster->ToPlayer()->AddComboPoints(unitTarget, 1, this);
|
||||||
}
|
}
|
||||||
// Fan of Knives
|
|
||||||
else if (m_spellInfo->SpellFamilyFlags[1] & 0x40000)
|
|
||||||
{
|
|
||||||
// 50% more damage with daggers
|
// 50% more damage with daggers
|
||||||
if (m_caster->GetTypeId() == TYPEID_PLAYER)
|
if (m_caster->GetTypeId() == TYPEID_PLAYER)
|
||||||
if (Item* item = m_caster->ToPlayer()->GetWeaponForAttack(m_attackType, true))
|
if (Item* item = m_caster->ToPlayer()->GetWeaponForAttack(m_attackType, true))
|
||||||
|
|||||||
Reference in New Issue
Block a user