Skip to content

Commit 728a242

Browse files
committed
minor modification
1 parent 09c252c commit 728a242

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Model.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -781,8 +781,8 @@ def get_ability_targets(self, ability_name=None, ability=None, ability_constant=
781781
for cell in cells:
782782
affected_cells.update(self.get_cells_in_aoe(cell, ability_constant.area_of_effect))
783783
if ability_constant.type == AbilityType.DEFENSIVE:
784-
return self.get_my_heroes_in_cells(cells)
785-
return self._get_opp_heroes_in_cells(cells)
784+
return self.get_my_heroes_in_cells(affected_cells)
785+
return self._get_opp_heroes_in_cells(affected_cells)
786786

787787
def get_my_heroes_in_cells(self, cells):
788788
heroes = []

0 commit comments

Comments
 (0)