Core/SAI: Rename LeavingWorld to OnDespawn & use it in SAI
Port From (https://github.com/TrinityCore/TrinityCore/commit/b0164fb2b9cc35663e337d48660d5bca1e973d99)
This commit is contained in:
@@ -726,6 +726,11 @@ namespace Game.AI
|
||||
GetScript().ProcessEventsFor(SmartEvents.CorpseRemoved, null, (uint)respawnDelay);
|
||||
}
|
||||
|
||||
public override void OnDespawn()
|
||||
{
|
||||
GetScript().ProcessEventsFor(SmartEvents.OnDespawn);
|
||||
}
|
||||
|
||||
public override void PassengerBoarded(Unit passenger, sbyte seatId, bool apply)
|
||||
{
|
||||
GetScript().ProcessEventsFor(apply ? SmartEvents.PassengerBoarded : SmartEvents.PassengerRemoved, passenger, (uint)seatId, 0, apply);
|
||||
|
||||
Reference in New Issue
Block a user