diff options
Diffstat (limited to 'src/monster.cpp')
-rw-r--r-- | src/monster.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/monster.cpp b/src/monster.cpp index 00e58648..230c72ad 100644 --- a/src/monster.cpp +++ b/src/monster.cpp @@ -103,6 +103,13 @@ Monster::handleAttack(Being *victim, int damage) sound.playSfx(mi.getSound((damage > 0) ? MONSTER_EVENT_HIT : MONSTER_EVENT_MISS)); } +void +Monster::takeDamage(int amount) +{ + if (amount > 0) sound.playSfx(getInfo().getSound(MONSTER_EVENT_HURT)); + Being::takeDamage(amount); +} + Being::TargetCursorSize Monster::getTargetCursorSize() const { |