Core/Creatures: Move immunities to separate table and implemented setting immunties to dispel, spell effects, aura types, aoe and chain targeting

Port From (https://github.com/TrinityCore/TrinityCore/commit/f70a5817e1c07891185d716611d45f50b1c73b78)
This commit is contained in:
hondacrx
2024-02-06 17:21:07 -05:00
parent f3993521bc
commit 7c812ae904
15 changed files with 216 additions and 98 deletions
@@ -260,6 +260,7 @@ namespace Framework.Constants
Enrage = 9,
ZGTicket = 10,
OldUnused = 11,
Max,
AllMask = ((1 << Magic) | (1 << Curse) | (1 << Disease) | (1 << Poison))
}
@@ -1783,7 +1784,7 @@ namespace Framework.Constants
IgnoreCasterAndTargetRestrictions = 0x10000000, /*Nyi*/ // Ignore Caster & Target Restrictions
IgnoreCasterModifiers = 0x20000000, // Ignore Caster Modifiers
DoNotDisplayRange = 0x40000000, // Do Not Display Range (Client Only)
NotOnAoeImmune = 0x80000000 /*Nyi, No Aoe Immunity Implementation*/ // Not On Aoe Immune
NotOnAoeImmune = 0x80000000 // Not On Aoe Immune
}
public enum SpellAttr4 : uint
{
@@ -2981,4 +2982,10 @@ namespace Framework.Constants
TargetAndBeacon = 2,
TargetParty = 3,
}
public enum WorldObjectSpellAreaTargetSearchReason
{
Area,
Chain
}
}