summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/fight.cc
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2008-05-05 14:09:27 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2008-05-05 14:09:27 +0000
commit9a725bea886873102ab380440dca2c8cb1bbd41d (patch)
tree3e7cf204173801d7b2d900f7089ab36fd905fab2 /crawl-ref/source/fight.cc
parentcfa20157c3582dd4fb481083de275f4acfe14849 (diff)
downloadcrawl-ref-9a725bea886873102ab380440dca2c8cb1bbd41d.tar.gz
crawl-ref-9a725bea886873102ab380440dca2c8cb1bbd41d.zip
Spectral hydras cannot have their heads chopped off (since they're spectral).
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4878 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/fight.cc')
-rw-r--r--crawl-ref/source/fight.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/crawl-ref/source/fight.cc b/crawl-ref/source/fight.cc
index d371ec79a9..e9999b5b47 100644
--- a/crawl-ref/source/fight.cc
+++ b/crawl-ref/source/fight.cc
@@ -2368,7 +2368,9 @@ bool melee_attack::chop_hydra_head( int dam,
bool melee_attack::decapitate_hydra(int dam, int damage_type)
{
- if (defender->atype() == ACT_MONSTER && def->has_hydra_multi_attack())
+ if (defender->atype() == ACT_MONSTER
+ && def->has_hydra_multi_attack()
+ && defender->id() != MONS_SPECTRAL_THING)
{
const int dam_type = (damage_type != -1) ? damage_type
: attacker->damage_type();