From 27e16a4a7818f49976798cceff10154cae6abe18 Mon Sep 17 00:00:00 2001 From: ryo_saeba Date: Sun, 30 May 2010 14:28:30 +0000 Subject: [PATCH] Disable talking while the NPC is animated. git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@13345 282e977c-c81d-0410-88c4-b93c2d0d6712 --- python/CFDialog.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/python/CFDialog.py b/python/CFDialog.py index b1e74e050..471c6bf57 100644 --- a/python/CFDialog.py +++ b/python/CFDialog.py @@ -206,6 +206,10 @@ class Dialog: # some variable substitution is done on the message here, $me and $you # are replaced by the names of the npc and the player respectively def speak(self, msg): + # query the animation system in case the NPC is playing an animation + if self.__speaker.Event(self.__speaker, self.__speaker, "", 1): + return 0 + key = self.uniqueKey() replies = None if Crossfire.GetPrivateDictionary().has_key(key):