Core/Spells: Fixed some item ranged spells dealing wrong damage

Port From (https://github.com/TrinityCore/TrinityCore/commit/fc9f00d35199fb53c5ba0e260f2993e117d9a4e3)
This commit is contained in:
hondacrx
2019-08-17 12:55:03 -04:00
parent a89ace13c8
commit 74aae32803
+2 -1
View File
@@ -622,7 +622,8 @@ namespace Game.Spells
public bool IsRangedWeaponSpell()
{
return (SpellFamilyName == SpellFamilyNames.Hunter && !SpellFamilyFlags[1].HasAnyFlag(0x10000000u)) // for 53352, cannot find better way
|| Convert.ToBoolean(EquippedItemSubClassMask & (int)ItemSubClassWeapon.MaskRanged);
|| Convert.ToBoolean(EquippedItemSubClassMask & (int)ItemSubClassWeapon.MaskRanged)
|| Attributes.HasAnyFlag(SpellAttr0.ReqAmmo);
}
public bool IsAutoRepeatRangedSpell()