summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mon-cast.h
diff options
context:
space:
mode:
authorDarshan Shaligram <dshaligram@users.sourceforge.net>2010-01-30 23:37:36 +0530
committerDarshan Shaligram <dshaligram@users.sourceforge.net>2010-01-30 23:53:28 +0530
commiteb06c7ae729d400600d1b7ef75793e743efbe68f (patch)
tree6702554b0218fead4d83d58bfdd7ff7a40c07f93 /crawl-ref/source/mon-cast.h
parentb2dc39ecddf1968b6fbadaa351b7139013f0a52b (diff)
downloadcrawl-ref-eb06c7ae729d400600d1b7ef75793e743efbe68f.tar.gz
crawl-ref-eb06c7ae729d400600d1b7ef75793e743efbe68f.zip
Allow Mara to clone any foe, not just the player.
When cloning the player, Mara will now create MONS_PLAYER_ILLUSION instead of MONS_PLAYER_GHOST. Illusions are identical to ghosts, but will get the correct breath weapon (for draconian players) and the correct holiness (i.e. undead only if the player is undead). Clones also inherit appropriate enchantments from their original, so if the player/other target is berserk, the clone will also be berserk.
Diffstat (limited to 'crawl-ref/source/mon-cast.h')
-rw-r--r--crawl-ref/source/mon-cast.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/crawl-ref/source/mon-cast.h b/crawl-ref/source/mon-cast.h
index 45e87e73c4..ba9661ba35 100644
--- a/crawl-ref/source/mon-cast.h
+++ b/crawl-ref/source/mon-cast.h
@@ -28,5 +28,6 @@ bool setup_mons_cast(monsters *monster, bolt &pbolt, spell_type spell_cast,
void mons_cast_haunt(monsters *monster);
void mons_cast_mislead(monsters *monster);
+bool actor_is_illusion_cloneable(actor *target);
#endif