520 {
524
526 {
527 transport->ToMotionTransport()->UnloadNonStaticPassengers();
528 transport->AddObjectToRemoveList();
529 }
530
531 return true;
532 }
Transport * GetTransport(WorldObject const &u, ObjectGuid const guid)
Definition: ObjectAccessor.cpp:189
MotionTransport * ToMotionTransport()
Definition: GameObject.h:327
void AddObjectToRemoveList()
Definition: Object.cpp:2160
Transport * GetTransport() const
Definition: Object.h:604
Definition: Transport.h:29
void UnloadNonStaticPassengers()
Definition: Transport.cpp:441
SpellCastResult CastSpell(SpellCastTargets const &targets, SpellInfo const *spellInfo, CustomSpellValues const *value, TriggerCastFlags triggerFlags=TRIGGERED_NONE, Item *castItem=nullptr, AuraEffect const *triggeredByAura=nullptr, ObjectGuid originalCaster=ObjectGuid::Empty)
Definition: Unit.cpp:1167