Core/Spells: Fixed some item ranged spells dealing wrong damage
Port From (https://github.com/TrinityCore/TrinityCore/commit/fc9f00d35199fb53c5ba0e260f2993e117d9a4e3)
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user