diff options
-rw-r--r-- | src/being.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/being.cpp b/src/being.cpp index 5ea0fca29..2f911b1ff 100644 --- a/src/being.cpp +++ b/src/being.cpp @@ -633,9 +633,12 @@ void Being::handleAttack(Being *victim, int damage, mActionTime = tick_time; } - Uint8 dir = calcDirection(victim->getTileX(), victim->getTileY()); - if (dir) - setDirection(dir); + if (this != player_node) + { + Uint8 dir = calcDirection(victim->getTileX(), victim->getTileY()); + if (dir) + setDirection(dir); + } sound.playSfx(mInfo->getSound((damage > 0) ? SOUND_EVENT_HIT : SOUND_EVENT_MISS), mX, mY); |