summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spells3.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-05 14:04:39 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-05 14:04:39 +0000
commita57d484bd70f19a06271202fd5e5a9d0be914d18 (patch)
tree2d4e1edd7666c7c3f07164104d3753a477af5b5b /crawl-ref/source/spells3.cc
parent70e12c754c318dc3e7b513d45c9cca91c94147ca (diff)
downloadcrawl-ref-a57d484bd70f19a06271202fd5e5a9d0be914d18.tar.gz
crawl-ref-a57d484bd70f19a06271202fd5e5a9d0be914d18.zip
Fix mimics not teleporting when attacked by reaching or airstrike, and a
few (really) minor adjustments on monster pathfinding. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5487 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/spells3.cc')
-rw-r--r--crawl-ref/source/spells3.cc8
1 files changed, 5 insertions, 3 deletions
diff --git a/crawl-ref/source/spells3.cc b/crawl-ref/source/spells3.cc
index 78c753a832..43198c02c6 100644
--- a/crawl-ref/source/spells3.cc
+++ b/crawl-ref/source/spells3.cc
@@ -261,7 +261,9 @@ int airstrike(int power, dist &beam)
monster->name(DESC_NOCAP_THE).c_str());
behaviour_event(monster, ME_ANNOY, MHITYOU);
- }
+ if (mons_is_mimic( monster->type ))
+ mimic_alert(monster);
+ }
conduct.enabled = true;
@@ -291,7 +293,7 @@ int airstrike(int power, dist &beam)
}
return (success);
-} // end airstrike()
+}
bool cast_bone_shards(int power, bolt &beam)
{
@@ -323,7 +325,7 @@ bool cast_bone_shards(int power, bolt &beam)
}
return (success);
-} // end cast_bone_shards()
+}
void sublimation(int power)
{