Skip to content

Commit 9f36168

Browse files
committed
exception in dead hero handled
1 parent bf2c1ae commit 9f36168

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Model.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -754,6 +754,8 @@ def get_ability_targets(self, ability_name=None, ability=None, ability_constant=
754754
return None
755755
target_cell = self.map.get_cell(target_row, target_column)
756756
cells = self.get_impact_cells(ability_constant, start_cell, target_cell)
757+
if cells is None or cells is []:
758+
return []
757759
affected_cells = set()
758760
for cell in cells:
759761
affected_cells.update(self.get_cells_in_aoe(cell, ability_constant.area_of_effect))

0 commit comments

Comments
 (0)