return ctf fix

This commit is contained in:
Roman Trapeznikov 2022-06-04 16:39:48 +03:00
parent 15b1d2ca84
commit 77bbcc8d75
No known key found for this signature in database
GPG Key ID: 0545F6C33190E7B1

View File

@ -274,6 +274,11 @@ class CaptureTheFlagGame(ba.TeamGameActivity[Player, Team]):
# If the enemy flag is already here, score!
if team.enemy_flag_at_base:
# And show team name which scored (but actually we could
# show here player who returned enemy flag).
self.show_zoom_message(ba.Lstr(resource='nameScoresText',
subs=[('${NAME}', team.name)]),
color=team.color)
self._score(team)
else:
team.enemy_flag_at_base = True