Commit f514be2f authored by Ralf's avatar Ralf
Browse files

fix conny's brackets

parent 438bcf07
......@@ -75,7 +75,7 @@ class Player(Thing):
if thing != self and isinstance(thing, Player):
playerToPush = thing
self.send("After coming out of the wall with incredible speed, you hit another player, who is in turn pushed away by your momentum. Poor bastard...")
self.game.labyrinth.moveThing(self,pushTarget,(lambda:playerToPush.pushAway(self) if playerToPush else None))
self.game.labyrinth.moveThing(self,pushTarget,(lambda:playerToPush.pushAway(self,direction)) if playerToPush else None)
# high(er)-level functions
def readCmd(self, cmd):
......@@ -104,7 +104,7 @@ class Player(Thing):
playerToPush = thing
self.send("By moving to the "+direction[0]+" you pushed another player away.")
self.game.labyrinth.moveThing(self, target, (lambda:playerToPush.pushAway(self,direction[0]) if playerToPush else None))
self.game.labyrinth.moveThing(self, target, (lambda:playerToPush.pushAway(self,direction[0])) if playerToPush else None)
elif verb in sayVerbs:
msg = " ".join(words[1:])
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment