summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/fight.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/fight.cc')
-rw-r--r--crawl-ref/source/fight.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/crawl-ref/source/fight.cc b/crawl-ref/source/fight.cc
index 8a26e078f8..7228295e86 100644
--- a/crawl-ref/source/fight.cc
+++ b/crawl-ref/source/fight.cc
@@ -3888,6 +3888,9 @@ bool melee_attack::mons_perform_attack()
if (attacker != defender && mons_attack_warded_off())
{
+ // A warded-off attack takes half the normal energy.
+ attacker->lose_energy(EUT_ATTACK, 2);
+
perceived_attack = true;
return (false);
}