Core/SAI: Fix SMART_EVENT_PASSENGER_REMOVED event
This commit is contained in:
1 parent
f5bd0470d1
commit
e150393c95
1 file changed
+1
-1
@@ -677,7 +677,7 @@ void SmartAI::CorpseRemoved(uint32& respawnDelay)
|
||||
|
||||
void SmartAI::PassengerBoarded(Unit* who, int8 seatId, bool apply)
|
||||
{
|
||||
GetScript()->ProcessEventsFor(SMART_EVENT_PASSENGER_BOARDED, who, (uint32)seatId, 0, apply);
|
||||
GetScript()->ProcessEventsFor(apply ? SMART_EVENT_PASSENGER_BOARDED : SMART_EVENT_PASSENGER_REMOVED, who, uint32(seatId), 0, apply);
|
||||
}
|
||||
|
||||
void SmartAI::InitializeAI()
|
||||
|
||||
Reference in new issue
Block a user