diff options
author | Raphael Langella <raphael.langella@gmail.com> | 2011-07-27 01:27:06 +0200 |
---|---|---|
committer | Raphael Langella <raphael.langella@gmail.com> | 2011-07-27 01:27:06 +0200 |
commit | f46a7e61b7399ac6a42b0b8728e4b3ae18a07291 (patch) | |
tree | 52c94ac79560fadc961ba231854e3d603227f161 /crawl-ref/source/mon-project.cc | |
parent | b52ce9b1d2dc37943b0342a4689ba1a664eb2795 (diff) | |
download | crawl-ref-f46a7e61b7399ac6a42b0b8728e4b3ae18a07291.tar.gz crawl-ref-f46a7e61b7399ac6a42b0b8728e4b3ae18a07291.zip |
Don't abort summoning spells if monster creation fails (#4324).
Diffstat (limited to 'crawl-ref/source/mon-project.cc')
-rw-r--r-- | crawl-ref/source/mon-project.cc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/crawl-ref/source/mon-project.cc b/crawl-ref/source/mon-project.cc index f9ccce9f25..fb0934075a 100644 --- a/crawl-ref/source/mon-project.cc +++ b/crawl-ref/source/mon-project.cc @@ -30,8 +30,6 @@ static void _fuzz_direction(monster& mon, int pow); -// XXX: like for summoning spells, miscast is possible even if the spell will -// abort later due to being unable to create the orbs. spret_type cast_iood(actor *caster, int pow, bolt *beam, float vx, float vy, int foe, bool fail) { @@ -58,7 +56,7 @@ spret_type cast_iood(actor *caster, int pow, bolt *beam, float vx, float vy, { mpr("Failed to spawn projectile.", MSGCH_WARN); /*canned_msg(MSG_NOTHING_HAPPENS);*/ - return SPRET_ABORT; + return SPRET_SUCCESS; } monster& mon = menv[mind]; |