Fix name
authorNeil <neil@dip.sun.ac.za>
Sat, 5 Mar 2016 20:00:13 +0000 (22:00 +0200)
committerNeil <neil@dip.sun.ac.za>
Sat, 5 Mar 2016 20:01:09 +0000 (22:01 +0200)
koperkapel/scenes/level.py

index e5d102a265d9772b9095d3915166c1bbf479dceb..7978a73546cdcc5f2a1d2f5e66eb33d211fa15c2 100644 (file)
@@ -146,7 +146,7 @@ class GameLevelScene(BaseLevelScene):
 
     def _can_move(self, x, y):
         if self._mode == 'walk':
-            if not self._level.is_on_enemy(x, y):
+            if not self._level.enemy_at(x, y):
                 return self._level.can_walk(x, y, self._level_layer)
             return False
         elif self._mode == 'fly':