From e0852a803f2da38ff1f7e793de4b8a100c91debc Mon Sep 17 00:00:00 2001 From: dolorous Date: Thu, 5 Jun 2008 17:49:43 +0000 Subject: 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 --- crawl-ref/source/spells3.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'crawl-ref/source/spells3.cc') 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) { -- cgit v1.2.3-54-g00ecf