Core/SAI: Rename LeavingWorld to OnDespawn & use it in SAI
Port From (https://github.com/TrinityCore/TrinityCore/commit/b0164fb2b9cc35663e337d48660d5bca1e973d99)
This commit is contained in:
@@ -518,7 +518,7 @@ namespace Game.AI
|
||||
public virtual void JustExitedCombat() { }
|
||||
|
||||
// Called when the unit is about to be removed from the world (despawn, grid unload, corpse disappearing, player logging out etc.)
|
||||
public virtual void LeavingWorld() { }
|
||||
public virtual void OnDespawn() { }
|
||||
|
||||
// Called at any Damage to any victim (before damage apply)
|
||||
public virtual void DamageDealt(Unit victim, ref uint damage, DamageEffectType damageType) { }
|
||||
|
||||
Reference in New Issue
Block a user