Core/AI: OnSpellCast, OnSpellFailed, OnSpellStart hooks

Port From (https://github.com/TrinityCore/TrinityCore/commit/050f55b62fded4cc73b76e42d56d98ea950cc26a)
This commit is contained in:
hondacrx
2022-05-30 15:44:21 -04:00
parent 5575703997
commit 306b0cb227
8 changed files with 80 additions and 14 deletions
+4 -1
View File
@@ -237,8 +237,11 @@ namespace Framework.Constants
SceneCancel = 80, // none
SceneComplete = 81, // none
SummonedUnitDies = 82, // CreatureId(0 all), CooldownMin, CooldownMax
OnSpellCast = 83, // SpellID, CooldownMin, CooldownMax
OnSpellFailed = 84, // SpellID, CooldownMin, CooldownMax
OnSpellStart = 85, // SpellID, CooldownMin, CooldownMax
End = 83
End = 86
}
public enum SmartActions
@@ -98,13 +98,6 @@ 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
{