Weapon dependant damage for some rogue talents

--HG--
branch : trunk
This commit is contained in:
thenecromancer
2010-04-21 18:52:30 +02:00
parent 7f4e73dbff
commit b54feffadb
+4 -3
View File
@@ -4492,6 +4492,10 @@ void Spell::SpellDamageWeaponDmg(uint32 i)
break;
}
case SPELLFAMILY_ROGUE:
{
// Fan of Knives, Hemorrhage, Ghostly Strike
if ((m_spellInfo->SpellFamilyFlags[1] & 0x40000)
|| (m_spellInfo->SpellFamilyFlags[0] & 0x6000000))
{
// Hemorrhage
if (m_spellInfo->SpellFamilyFlags[0] & 0x2000000)
@@ -4499,9 +4503,6 @@ void Spell::SpellDamageWeaponDmg(uint32 i)
if (m_caster->GetTypeId() == TYPEID_PLAYER)
m_caster->ToPlayer()->AddComboPoints(unitTarget, 1, this);
}
// Fan of Knives
else if (m_spellInfo->SpellFamilyFlags[1] & 0x40000)
{
// 50% more damage with daggers
if (m_caster->GetTypeId() == TYPEID_PLAYER)
if (Item* item = m_caster->ToPlayer()->GetWeaponForAttack(m_attackType, true))