diff --git a/CHANGELOG.md b/CHANGELOG.md index 3e9f4499..a47749b6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -36,6 +36,8 @@ EraOSBeta!) - Added a UI for customizing Series Length in Teams and Points-to-Win in FFA (Thanks EraOSBeta!) +- Players leaving the game after getting hurt will now grant kills. (Thanks + Temp!) ### 1.7.32 (build 21741, api 8, 2023-12-20) - Fixed a screen message that no one will ever see (Thanks vishal332008?...) diff --git a/src/assets/ba_data/python/bascenev1lib/actor/playerspaz.py b/src/assets/ba_data/python/bascenev1lib/actor/playerspaz.py index 578a9ef7..120773b2 100644 --- a/src/assets/ba_data/python/bascenev1lib/actor/playerspaz.py +++ b/src/assets/ba_data/python/bascenev1lib/actor/playerspaz.py @@ -79,14 +79,12 @@ class PlayerSpaz(Spaz): @overload def getplayer( self, playertype: type[PlayerT], doraise: Literal[False] = False - ) -> PlayerT | None: - ... + ) -> PlayerT | None: ... @overload def getplayer( self, playertype: type[PlayerT], doraise: Literal[True] - ) -> PlayerT: - ... + ) -> PlayerT: ... def getplayer( self, playertype: type[PlayerT], doraise: bool = False @@ -226,10 +224,7 @@ class PlayerSpaz(Spaz): # Report player deaths to the game. if not self._dead: # Was this player killed while being held? - was_held = ( - self.held_count > 0 - and self.last_player_held_by - ) + was_held = self.held_count > 0 and self.last_player_held_by # Was this player attacked before death? was_attacked_recently = ( self.last_player_attacked_by