From de21883717b8421ae93ab317c4077e39beac64b4 Mon Sep 17 00:00:00 2001 From: BattleJenkins Date: Sun, 2 Apr 2017 03:48:05 -0700 Subject: [PATCH] Fixed at_before_move() hook on player Fixed some erroneous code in the at_before_move() hook that I must have forgotten to test properly. It now works as intended. --- evennia/contrib/turnbattle.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/evennia/contrib/turnbattle.py b/evennia/contrib/turnbattle.py index fbfd2fe1b..4c41331fa 100644 --- a/evennia/contrib/turnbattle.py +++ b/evennia/contrib/turnbattle.py @@ -305,10 +305,10 @@ class BattleCharacter(DefaultCharacter): """ # Keep the character from moving if at 0 HP or in combat. if is_in_combat(self): - self.caller.msg("You can't exit a room while in combat!") + self.msg("You can't exit a room while in combat!") return False # Returning false keeps the character from moving. if self.db.HP <= 0: - self.caller.msg("You can't move, you've been defeated!") + self.msg("You can't move, you've been defeated!") return False return True