Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
kbengine committed Nov 9, 2016
1 parent 885811b commit b146dfd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/cell/interfaces/Combat.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def checkEnemyDist(self, entity):
virtual method.
检查敌人距离
"""
dist = entity.position.distTo(self.position) <= 30.0
dist = entity.position.distTo(self.position)
if dist > 30.0:
INFO_MSG("%s::checkEnemyDist: %i id=%i, dist=%f." % (self.getScriptName(), self.id, entity.id, dist))
return False
Expand Down

0 comments on commit b146dfd

Please sign in to comment.