Fixed issue with spells wrongly calculated using ranged AP

This commit is contained in:
ariel-
2016-01-11 19:16:07 -03:00
parent dbee341ec0
commit 53294da22b

View File

@@ -1334,8 +1334,7 @@ bool SpellInfo::IsBreakingStealth() const
bool SpellInfo::IsRangedWeaponSpell() const
{
return (SpellFamilyName == SPELLFAMILY_HUNTER && !(SpellFamilyFlags[1] & 0x10000000)) // for 53352, cannot find better way
|| (EquippedItemSubClassMask & ITEM_SUBCLASS_MASK_WEAPON_RANGED);
return (EquippedItemClass == ITEM_CLASS_WEAPON) && (EquippedItemSubClassMask & ITEM_SUBCLASS_MASK_WEAPON_RANGED);
}
bool SpellInfo::IsAutoRepeatRangedSpell() const