Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/main' into ajustmentPlayerEvent
Browse files Browse the repository at this point in the history
  • Loading branch information
Luan Luciano committed Nov 28, 2023
2 parents cf3b4f8 + e19aded commit 56b4e79
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion data-otservbr-global/npc/gregor.lua
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ local function creatureSayCallback(npc, creature, type, message)
npcHandler:setTopic(playerId, 0)
elseif npcHandler:getTopic(playerId) == 4 then
if MsgContains(message, "yes") then
if not player:removeItem(3351, 1) then
if not player:removeItem(5924, 1) then
npcHandler:say("Lying is not exactly honourable, |PLAYERNAME|. Shame on you.", npc, creature)
return true
end
Expand Down
2 changes: 1 addition & 1 deletion src/game/game.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5797,7 +5797,7 @@ void Game::checkCreatures() {
auto &checkCreatureList = checkCreatureLists[index];
size_t it = 0, end = checkCreatureList.size();
while (it < end) {
const auto &creature = checkCreatureList[it];
auto creature = checkCreatureList[it];
if (creature && creature->creatureCheck) {
if (creature->getHealth() > 0) {
creature->onThink(EVENT_CREATURE_THINK_INTERVAL);
Expand Down

0 comments on commit 56b4e79

Please sign in to comment.