Skip to content

Commit

Permalink
Update unit.py (Dentosal#172)
Browse files Browse the repository at this point in the history
* Update unit.py
  • Loading branch information
tweakimp authored and BurnySc2 committed Nov 19, 2018
1 parent 1f2744b commit e8134df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sc2/unit.py
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ def target_in_range(self, target: "Unit", bonus_distance: Union[int, float]=0) -
""" Includes the target's radius when calculating distance to target """
if self.can_attack_ground and not target.is_flying:
unit_attack_range = self.ground_range
elif self.can_attack_air and target.is_flying:
elif self.can_attack_air and (target.is_flying or target.type_id == UnitTypeId.COLOSSUS):
unit_attack_range = self.air_range
else:
unit_attack_range = -1
Expand Down

0 comments on commit e8134df

Please sign in to comment.