游戏可以运行
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user