diff --git a/data-otservbr-global/npc/jeronimo.lua b/data-otservbr-global/npc/jeronimo.lua index 59952d3229c..86c6a69e6ab 100644 --- a/data-otservbr-global/npc/jeronimo.lua +++ b/data-otservbr-global/npc/jeronimo.lua @@ -186,6 +186,7 @@ local function creatureSayCallback(npc, creature, type, message) npcHandler:setTopic("selected", {}) npcHandler:setTopic("outfit", {}) npcHandler:setTopic("mount", {}) + return true end local descCharge = "" diff --git a/src/lua/functions/creatures/player/player_functions.cpp b/src/lua/functions/creatures/player/player_functions.cpp index 22e9a8e83a2..7b00370e4e9 100644 --- a/src/lua/functions/creatures/player/player_functions.cpp +++ b/src/lua/functions/creatures/player/player_functions.cpp @@ -2716,11 +2716,9 @@ int PlayerFunctions::luaPlayerUpdateTournamentCoins(lua_State* L) { lua_pushnil(L); return 1; } else if (action == "remove" && player->account->removeCoins(account::CoinType::TOURNAMENT, amount) != account::ERROR_NO) { - if (player->account->removeCoins(account::CoinType::COIN, getNumber(L, 2)) != account::ERROR_NO) { - reportErrorFunc(fmt::format("Failed to update (remove) {}", tournamentCoinName)); - lua_pushnil(L); - return 1; - } + reportErrorFunc(fmt::format("Failed to update (remove) {}", tournamentCoinName)); + lua_pushnil(L); + return 1; } if (player->getAccount()->save() != account::ERROR_NO) {