Tweakeroo'd

This commit is contained in:
3alTemp 2024-03-13 19:39:26 -06:00
parent 5ad94067eb
commit 3786e2bfb3
No known key found for this signature in database
GPG Key ID: FC599A8DFAEC706C

View File

@ -230,14 +230,15 @@ class PlayerSpaz(Spaz):
self.last_player_attacked_by self.last_player_attacked_by
and bs.time() - self.last_attacked_time < 4.0 and bs.time() - self.last_attacked_time < 4.0
) )
# Immediate-mode or left-game deaths don't count as 'kills'. # Leaving the game doesn't count as a kill *unless*
killed = bool( # someone does it intentionally while being attacked.
not msg.immediate left_game_cleanly = (
and msg.how is not bs.DeathType.LEFT_GAME msg.how is bs.DeathType.LEFT_GAME
or was_held and not (was_held or was_attacked_recently)
or was_attacked_recently
) )
killed = not (msg.immediate or left_game_cleanly)
activity = self._activity() activity = self._activity()
player = self.getplayer(bs.Player, False) player = self.getplayer(bs.Player, False)