mirror of
https://github.com/RYDE-WORK/ballistica.git
synced 2026-01-24 16:06:51 +08:00
return ctf fix
This commit is contained in:
parent
15b1d2ca84
commit
77bbcc8d75
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user