summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-09-17 19:03:34 +0300
committerAndrei Karas <akaras@inbox.ru>2011-09-17 19:03:34 +0300
commitaf73c028c035aae3c96c00302491d62e9fbaea74 (patch)
tree933221b497f440f5b802f744808eaaba3a2c4dce
parent0e3457c5ee8cc6b999817ae1ed5a594bcf2516f8 (diff)
downloadmanaverse-1.1.9.18.tar.gz
manaverse-1.1.9.18.tar.bz2
manaverse-1.1.9.18.tar.xz
manaverse-1.1.9.18.zip
Change sit state under attack only if player got hit.v1.1.9.18
-rw-r--r--src/being.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/being.cpp b/src/being.cpp
index 86695ee61..532e6e2cf 100644
--- a/src/being.cpp
+++ b/src/being.cpp
@@ -714,7 +714,7 @@ void Being::handleAttack(Being *victim, int damage,
if (dir)
setDirection(dir);
}
- if (victim->mType == PLAYER && victim->mAction == SIT)
+ if (damage && victim->mType == PLAYER && victim->mAction == SIT)
victim->setAction(STAND);
sound.playSfx(mInfo->getSound((damage > 0) ?