Skip to content

Commit

Permalink
FOR REAL Last commit. REALLY fix firing bug
Browse files Browse the repository at this point in the history
  • Loading branch information
v4nz666 committed Mar 12, 2017
1 parent 0df2f2b commit c9269b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Ship.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ def canFire(self, x, y, captain):
if self.reloading:
return False
maxDist = max(captain.skills['gun'], config.captains['minRange'])
if captain.ship.isPlayer and util.dist(self.mapX, self.mapY, x, y) > maxDist:
if not captain.ship.isPlayer and util.dist(self.mapX, self.mapY, x, y) > maxDist:
return False

bearing = util.bearing(self.mapX, self.mapY, x, y)
Expand Down

0 comments on commit c9269b2

Please sign in to comment.