Core/AI: Implement OnAuraApplied and OnAuraRemoved hooks
Port From (https://github.com/TrinityCore/TrinityCore/commit/d1e07ac6553c7ae1e3296fc044247f0d0f95d267)
This commit is contained in:
@@ -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; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user