Update _gameactivity.py

This commit is contained in:
Sasha 2022-06-17 09:02:19 +09:00 committed by GitHub
parent 8aae99fa48
commit ed731c0a4a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -853,8 +853,8 @@ class GameActivity(Activity[PlayerType, TeamType]):
color = player.color
highlight = player.highlight
playerspaztype = player.playerspaztype
if playerspaztype is None:
playerspaztype = getattr(player, 'playerspaztype', None)
if not issubclass(playerspaztype, PlayerSpaz):
playerspaztype = PlayerSpaz
light_color = _math.normalized_color(color)