mirror of
https://github.com/araxiaonline/TrinityCore.git
synced 2026-06-19 06:29:50 -04:00
Core/SAI: Rename LeavingWorld to OnDespawn & use it in SAI (#28059)
(cherry picked from commit b9450bcdd0)
This commit is contained in:
@@ -676,6 +676,11 @@ void SmartAI::CorpseRemoved(uint32& respawnDelay)
|
||||
GetScript()->ProcessEventsFor(SMART_EVENT_CORPSE_REMOVED, nullptr, respawnDelay);
|
||||
}
|
||||
|
||||
void SmartAI::OnDespawn()
|
||||
{
|
||||
GetScript()->ProcessEventsFor(SMART_EVENT_ON_DESPAWN);
|
||||
}
|
||||
|
||||
void SmartAI::PassengerBoarded(Unit* who, int8 seatId, bool apply)
|
||||
{
|
||||
GetScript()->ProcessEventsFor(apply ? SMART_EVENT_PASSENGER_BOARDED : SMART_EVENT_PASSENGER_REMOVED, who, uint32(seatId), 0, apply);
|
||||
|
||||
Reference in New Issue
Block a user