diff --git a/src/scripts/action/common/ActionTeleport5.cpp b/src/scripts/action/common/ActionTeleport5.cpp index 0d0df5c5..e08afda6 100644 --- a/src/scripts/action/common/ActionTeleport5.cpp +++ b/src/scripts/action/common/ActionTeleport5.cpp @@ -23,21 +23,17 @@ public: auto teleportQuery = player->getTeleportQuery(); - if( player->getCurrency( Common::CurrencyType::Gil ) < teleportQuery.cost ) + if( player->getCurrency( Common::CurrencyType::Gil ) < teleportQuery.cost || + teleportQuery.targetAetheryte == 0 ) { action.interrupt(); return; } - if( teleportQuery.targetAetheryte == 0 ) - { - action.interrupt(); - } - player->removeCurrency( Common::CurrencyType::Gil, teleportQuery.cost ); player->setZoningType( Common::ZoneingType::Teleport ); - player->teleport( static_cast< uint16_t >( teleportQuery.targetAetheryte ) ); + player->teleport( teleportQuery.targetAetheryte ); player->clearTeleportQuery(); }