diff options
Diffstat (limited to 'crawl-ref/source/player.cc')
-rw-r--r-- | crawl-ref/source/player.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc index bdc7ba2615..ac233e5034 100644 --- a/crawl-ref/source/player.cc +++ b/crawl-ref/source/player.cc @@ -6194,7 +6194,7 @@ void player::teleport(bool now, bool abyss_shift) you_teleport(); } -void player::hurt(const actor *agent, int amount) +int player::hurt(const actor *agent, int amount) { const monsters *mon = dynamic_cast<const monsters*>(agent); if (agent->atype() == ACT_MONSTER) @@ -6208,6 +6208,7 @@ void player::hurt(const actor *agent, int amount) ASSERT(false); ouch(amount, 0, KILLED_BY_SOMETHING); } + return (amount); } void player::drain_stat(int stat, int amount, actor* attacker) |