Core/Spells: unify OnSpellCastInterrupt and OnSuccessfulSpellCast hooks into OnSpellCastFinished

Port From (https://github.com/TrinityCore/TrinityCore/commit/d1594c7295f1ca3f21a63a13895abf371d8bd3e0)
This commit is contained in:
hondacrx
2022-05-24 12:54:25 -04:00
parent bf0c12ab0c
commit 3c3d16ab09
4 changed files with 17 additions and 7 deletions
@@ -98,6 +98,13 @@ namespace Framework.Constants
Ranged = 2 //hunter range and ranged weapon
}
public enum SpellFinishReason
{
SuccessfulCast = 0, // spell has sucessfully launched
Canceled = 1, // spell has been canceled (interrupts)
ChannelingComplete = 2 // spell channeling has been finished
}
[Flags]
public enum SpellInterruptFlags
{