Bugfix: don't get assists when people die after scoring (closes #99) | Don't print the suicide in the log if it happens after scoring

This commit is contained in:
Zughy 2023-09-12 11:53:16 +02:00
parent 94fce3b523
commit 5abcda6d1f
2 changed files with 5 additions and 1 deletions

View File

@ -314,7 +314,6 @@ end
function add_point(p_name, teamID, arena)
local enemy_teamID = teamID == 1 and 2 or 1
local team = arena_lib.get_players_in_team(arena, teamID)
local enemy_team = arena_lib.get_players_in_team(arena, enemy_teamID)

View File

@ -331,6 +331,11 @@ end
function block_league.hitter_or_suicide(arena, player, dmg_rcvd_table, no_hitter_img)
-- se le armi son disabilitate (quindi o in caricamento o dopo punto o in celebrazione) non mostrare niente
if arena.weapons_disabled then
block_league.HUD_spectate_update(arena, player:get_player_name(), "alive")
return end
local last_hitter = ""
local last_hitter_timestamp = 99999