Core/AI: Implement OnAuraApplied and OnAuraRemoved hooks

Port From (https://github.com/TrinityCore/TrinityCore/commit/d1e07ac6553c7ae1e3296fc044247f0d0f95d267)
This commit is contained in:
Hondacrx
2025-12-08 15:10:55 -05:00
parent a478baf421
commit 6da69c8263
6 changed files with 40 additions and 1 deletions
+7 -1
View File
@@ -297,7 +297,7 @@ namespace Game.AI
if (!me.IsTapListNotClearedOnEvade())
me.SetTappedBy(null);
me.ResetPlayerDamageReq();
me.SetLastDamagedTime(0);
me.SetCannotReachTarget(false);
@@ -494,6 +494,12 @@ namespace Game.AI
// Called when a channeled spell finishes
public virtual void OnChannelFinished(SpellInfo spell) { }
// Called when aura is applied
public virtual void OnAuraApplied(AuraApplication aurApp) { }
// Called when aura is removed
public virtual void OnAuraRemoved(AuraApplication aurApp) { }
// Should return true if the NPC is currently being escorted
public virtual bool IsEscorted() { return false; }