Commit 45beb26f authored by Ralf's avatar Ralf

fix sending chat

parent 6550d3d5
......@@ -103,13 +103,13 @@ class Player(Thing):
for thing in target.things:
if thing != self and isinstance(thing, Player):
playerToPush = thing
self.send("By moving to the "+direction[0]+" you pushed another player away."))
self.send("By moving to the "+direction[0]+" you pushed another player away.")
self.game.labyrinth.moveThing(self, target, (lambda:playerToPush.isMovedBy(self) if playerToPush else None))
elif verb in sayVerbs:
msg = " ".join(words[1:])
for dx, dy in [(0, 0)]+directionOffsets.values():
for dx, dy in directionOffsets.values():
for thing in self.field.neighbor(dx=dx, dy=dy):
if isinstance(thing, Player) and thing != self:
thing.send("You hear someone saying: "+msg)
......
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