Core/Spells: Fixed some item ranged spells dealing wrong damage (#19104)

(cherrypicked from e7a9549422)
This commit is contained in:
xinef1
2017-02-13 21:52:51 +01:00
committed by Shauren
parent cfefd27cb8
commit fc9f00d351

View File

@@ -1621,7 +1621,8 @@ 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);
|| (EquippedItemSubClassMask & ITEM_SUBCLASS_MASK_WEAPON_RANGED)
|| (Attributes & SPELL_ATTR0_REQ_AMMO);
}
bool SpellInfo::IsAutoRepeatRangedSpell() const