Skip to content

Commit

Permalink
fix conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
murilo09 committed Nov 12, 2024
1 parent 0801340 commit b1d1e3e
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/lua/functions/creatures/player/player_functions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,7 @@ void PlayerFunctions::init(lua_State* L) {
Lua::registerMethod(L, "Player", "addTransferableCoins", PlayerFunctions::luaPlayerAddTransferableCoins);
Lua::registerMethod(L, "Player", "removeTransferableCoins", PlayerFunctions::luaPlayerRemoveTransferableCoins);

Lua::registerMethod(L, "Player", "sendBlessStatus", PlayerFunctions::luaPlayerSendBlessStatus);
Lua::registerMethod(L, "Player", "hasBlessing", PlayerFunctions::luaPlayerHasBlessing);
Lua::registerMethod(L, "Player", "addBlessing", PlayerFunctions::luaPlayerAddBlessing);
Lua::registerMethod(L, "Player", "removeBlessing", PlayerFunctions::luaPlayerRemoveBlessing);
Expand Down Expand Up @@ -3077,15 +3078,15 @@ int PlayerFunctions::luaPlayerRemoveTransferableCoins(lua_State* L) {

int PlayerFunctions::luaPlayerSendBlessStatus(lua_State* L) {
// player:sendBlessStatus()
const auto &player = getUserdataShared<Player>(L, 1);
const auto &player = Lua::getUserdataShared<Player>(L, 1);
if (!player) {
reportErrorFunc(getErrorDesc(LUA_ERROR_PLAYER_NOT_FOUND));
pushBoolean(L, false);
Lua::reportErrorFunc(Lua::getErrorDesc(LUA_ERROR_PLAYER_NOT_FOUND));
Lua::pushBoolean(L, false);
return 0;
}

player->sendBlessStatus();
pushBoolean(L, true);
Lua::pushBoolean(L, true);
return 1;
}

Expand Down

0 comments on commit b1d1e3e

Please sign in to comment.