1743 {
1746 {
1747 if (
Vehicle* vehicle = seat->GetVehicleKit())
1748 if (
Unit* pyrite = vehicle->GetPassenger(1))
1749 pyrite->ExitVehicle();
1750
1752 {
1755
1756 if (target->IsCreature())
1757 target->ToCreature()->DespawnOrUnsummon(1300);
1758 }
1759 }
1760 }
@ SPELL_ADD_PYRITE
Definition: boss_flame_leviathan.cpp:1730
Unit * GetVehicleBase() const
Definition: Unit.cpp:18742
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
int32 GetEffectValue() const
Definition: SpellScript.cpp:600
Unit * GetHitUnit()
Definition: SpellScript.cpp:448
Unit * GetCaster()
Definition: SpellScript.cpp:401