From 74aae328033ea92ab40e77ea367f5db495e9b400 Mon Sep 17 00:00:00 2001 From: hondacrx Date: Sat, 17 Aug 2019 12:55:03 -0400 Subject: [PATCH] Core/Spells: Fixed some item ranged spells dealing wrong damage Port From (https://github.com/TrinityCore/TrinityCore/commit/fc9f00d35199fb53c5ba0e260f2993e117d9a4e3) --- Source/Game/Spells/SpellInfo.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/Game/Spells/SpellInfo.cs b/Source/Game/Spells/SpellInfo.cs index 6714d4b69..99e12320d 100644 --- a/Source/Game/Spells/SpellInfo.cs +++ b/Source/Game/Spells/SpellInfo.cs @@ -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()