summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spells3.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-05 17:49:43 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-05 17:49:43 +0000
commite0852a803f2da38ff1f7e793de4b8a100c91debc (patch)
treecddbcdd4c1ce91b0de543e01bada536cac4b1e77 /crawl-ref/source/spells3.cc
parenta57d484bd70f19a06271202fd5e5a9d0be914d18 (diff)
downloadcrawl-ref-e0852a803f2da38ff1f7e793de4b8a100c91debc.tar.gz
crawl-ref-e0852a803f2da38ff1f7e793de4b8a100c91debc.zip
Make mimics teleport when smitten, too.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5488 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/spells3.cc')
-rw-r--r--crawl-ref/source/spells3.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/crawl-ref/source/spells3.cc b/crawl-ref/source/spells3.cc
index 43198c02c6..92d13c2a26 100644
--- a/crawl-ref/source/spells3.cc
+++ b/crawl-ref/source/spells3.cc
@@ -217,6 +217,8 @@ int cast_smiting(int power, dist &beam)
mprf("You smite %s!", 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;
@@ -236,7 +238,7 @@ int cast_smiting(int power, dist &beam)
}
return (success);
-} // end cast_smiting()
+}
int airstrike(int power, dist &beam)
{