Core/Spells: Include more than first 2 spell effects when determining if a spell is negative

Port From (https://github.com/TrinityCore/TrinityCore/commit/176c75e8dbad95bfdcd88034f75e1452997ddb07)
This commit is contained in:
hondacrx
2020-07-14 16:58:41 -04:00
parent 0f5801d9f4
commit e179d29b55
3 changed files with 15 additions and 26 deletions
@@ -1865,9 +1865,9 @@ namespace Framework.Constants
DirectDamage = 0x100,
Charge = 0x200,
PickPocket = 0x400,
NegativeEff0 = 0x1000,
NegativeEff1 = 0x2000,
NegativeEff2 = 0x4000,
DeprecatedNegativeEff0 = 0x1000, // DO NOT REUSE
DeprecatedNegativeEff1 = 0x2000, // DO NOT REUSE
DeprecatedNegativeEff2 = 0x4000, // DO NOT REUSE
IgnoreArmor = 0x8000,
ReqTargetFacingCaster = 0x10000,
ReqCasterBehindTarget = 0x20000,
@@ -1876,9 +1876,7 @@ namespace Framework.Constants
BinarySpell = 0x00100000,
SchoolmaskNormalWithMagic = 0x00200000,
LiquidAura = 0x00400000,
IsTalent = 0x00800000,
Negative = NegativeEff0 | NegativeEff1 | NegativeEff2
IsTalent = 0x00800000
}
#endregion