From 7358c3fb1241a185f403773fb0d1f2121a06622f Mon Sep 17 00:00:00 2001 From: Luan Luciano Date: Fri, 26 Jan 2024 01:59:00 -0300 Subject: [PATCH] Update player_death.lua --- .../scripts/creaturescripts/others/player_death.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data-otservbr-global/scripts/creaturescripts/others/player_death.lua b/data-otservbr-global/scripts/creaturescripts/others/player_death.lua index bf92727864d..b848235ebae 100644 --- a/data-otservbr-global/scripts/creaturescripts/others/player_death.lua +++ b/data-otservbr-global/scripts/creaturescripts/others/player_death.lua @@ -125,7 +125,7 @@ function playerDeath.onDeath(player, corpse, killer, mostDamageKiller, unjustifi enemyMembers[i]:sendChannelMessage(enemyMembers[i], string.format("%s was killed by %s. The new score is: %s %d:%d %s (frags limit: %d)", playerName, killerName, targetGuild:getName(), guild1_kills, guild2_kills, killerGuild:getName(), frags_limit), TALKTYPE_CHANNEL_R1, CHANNEL_GUILD) end - if guild1_kills >= limit or guild2_kills >= limit then + if guild1_kills >= frags_limit or guild2_kills >= frags_limit then db.query("UPDATE `guild_wars` SET `status` = 4, `ended` = " .. os.time() .. " WHERE `status` = 1 AND `id` = " .. warId) Game.broadcastMessage(string.format("%s has just won the war against %s.", killerGuild:getName(), targetGuild:getName())) end