Skip to content

Commit

Permalink
Update player_death.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
Luan Luciano authored Jan 26, 2024
1 parent 1d73864 commit 7358c3f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7358c3f

Please sign in to comment.