Don't display attack button for dead base groups

This commit is contained in:
walterroach 2020-11-09 15:48:34 -06:00
parent ef585c59dd
commit be6abc0025

View File

@ -25,7 +25,7 @@ class QBaseDefenseGroupInfo(QGroupBox):
self.buildLayout()
self.main_layout.addLayout(self.unit_layout)
if not self.cp.captured:
if not self.cp.captured and not self.ground_object.is_dead:
attack_button = QPushButton("Attack")
attack_button.setProperty("style", "btn-danger")
attack_button.setMaximumWidth(180)