summaryrefslogtreecommitdiff
path: root/src/monster.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/monster.cpp')
-rw-r--r--src/monster.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/monster.cpp b/src/monster.cpp
index bc964b0b..9cbd28eb 100644
--- a/src/monster.cpp
+++ b/src/monster.cpp
@@ -93,6 +93,13 @@ Monster::handleAttack()
sound.playSfx(mi.getSound(MONSTER_EVENT_HIT));
}
+void
+Monster::takeDamage(int amount)
+{
+ if (amount > 0) sound.playSfx(getInfo().getSound(MONSTER_EVENT_HURT));
+ Being::takeDamage(amount);
+}
+
Being::TargetCursorSize
Monster::getTargetCursorSize() const
{