游戏可以运行

This commit is contained in:
2026-05-24 12:40:57 +08:00
parent 34ce39930c
commit 3df3e4f560
4 changed files with 12 additions and 10 deletions

View File

@@ -296,8 +296,8 @@ class Game:
self.ui.selected_unit = unit
self.ui.target_mode = "attack"
targets = list(opponent.get_frontline_units())
targets.extend(opponent.get_support_units())
if unit.is_ranged():
targets.extend(opponent.get_support_units())
targets.append(("capital", opponent))
self.ui.valid_targets = targets
return
@@ -310,9 +310,10 @@ class Game:
if unit.can_attack and not unit.has_attacked and player.can_afford_attack(unit):
self.ui.selected_unit = unit
self.ui.target_mode = "attack"
targets = list(opponent.get_frontline_units())
targets.extend(opponent.get_support_units())
targets = list(opponent.get_support_units())
targets.append(("capital", opponent))
if unit.is_ranged():
targets.extend(opponent.get_frontline_units())
self.ui.valid_targets = targets
def _handle_deploy_click(self, pos):