Core/Spells: Defined and implemented new spell interrupt flags

Port From (https://github.com/TrinityCore/TrinityCore/commit/07a47947e2e189649e48a093b66c8c3de8872ac0)
This commit is contained in:
hondacrx
2021-03-29 13:09:27 -04:00
parent 9bbc1b49f3
commit e3994d9636
5 changed files with 76 additions and 32 deletions
@@ -100,12 +100,18 @@ namespace Framework.Constants
public enum SpellInterruptFlags
{
Movement = 0x01, // why need this for instant?
PushBack = 0x02, // push back
Unk3 = 0x04, // any info?
Interrupt = 0x08, // interrupt
AbortOnDmg = 0x10 // _complete_ interrupt on direct damage
//SPELL_INTERRUPT_UNK = 0x20 // unk, 564 of 727 spells having this spell start with "Glyph"
None = 0,
Movement = 0x01,
DamagePushbackPlayerOnly = 0x02,
Stun = 0x04, // useless, even spells without it get interrupted
Combat = 0x08,
DamageCancelsPlayerOnly = 0x10,
MeleeCombat = 0x20, // NYI
Immunity = 0x40, // NYI
DamageAbsorb = 0x80,
ZeroDamageCancels = 0x100,
DamagePushback = 0x200,
DamageCancels = 0x400
}
public enum SpellAuraInterruptFlags : uint