summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2006-09-22 15:10:16 +0000
committerharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2006-09-22 15:10:16 +0000
commit27329b03ae50d453aab323ab8ee3b46523cc03c5 (patch)
tree5e99252148649c43dc2c8aaaf2c511298d0bad0d
parentca82de1586c1f9488f5d491a147de28fda82b632 (diff)
downloadcrawl-ref-27329b03ae50d453aab323ab8ee3b46523cc03c5.tar.gz
crawl-ref-27329b03ae50d453aab323ab8ee3b46523cc03c5.zip
Miscast effect explosions now always hit.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/branches/stone_soup@70 c06c8d41-db1a-0410-9941-cceddc491573
-rw-r--r--crawl-ref/source/spl-cast.cc9
1 files changed, 8 insertions, 1 deletions
diff --git a/crawl-ref/source/spl-cast.cc b/crawl-ref/source/spl-cast.cc
index d248da977d..de03254986 100644
--- a/crawl-ref/source/spl-cast.cc
+++ b/crawl-ref/source/spl-cast.cc
@@ -2139,6 +2139,7 @@ bool miscast_effect( unsigned int sp_type, int mag_pow, int mag_fail,
beam.thrower = (cause) ? KILL_MISC : KILL_YOU;
beam.aux_source = cause;
beam.ex_size = 1;
+ beam.is_explosion = true;
explosion(beam);
break;
@@ -2166,7 +2167,8 @@ bool miscast_effect( unsigned int sp_type, int mag_pow, int mag_fail,
beam.thrower = (cause) ? KILL_MISC : KILL_YOU;
beam.aux_source = cause;
beam.ex_size = coinflip()?1:2;
-
+ beam.is_explosion = true;
+
explosion(beam);
break;
}
@@ -3057,6 +3059,7 @@ bool miscast_effect( unsigned int sp_type, int mag_pow, int mag_fail,
beam.thrower = (cause) ? KILL_MISC : KILL_YOU;
beam.aux_source = cause;
beam.ex_size = 1;
+ beam.is_explosion = true;
explosion(beam);
break;
@@ -3088,6 +3091,7 @@ bool miscast_effect( unsigned int sp_type, int mag_pow, int mag_fail,
beam.thrower = (cause) ? KILL_MISC : KILL_YOU;
beam.aux_source = cause;
beam.ex_size = coinflip()?1:2;
+ beam.is_explosion = true;
explosion(beam);
break;
@@ -3189,6 +3193,7 @@ bool miscast_effect( unsigned int sp_type, int mag_pow, int mag_fail,
beam.thrower = (cause) ? KILL_MISC : KILL_YOU;
beam.aux_source = cause;
beam.ex_size = 1;
+ beam.is_explosion = true;
explosion(beam);
break;
@@ -3317,6 +3322,7 @@ bool miscast_effect( unsigned int sp_type, int mag_pow, int mag_fail,
beam.thrower = (cause) ? KILL_MISC : KILL_YOU;
beam.aux_source = cause;
beam.ex_size = 1;
+ beam.is_explosion = true;
explosion(beam);
break;
@@ -3426,6 +3432,7 @@ bool miscast_effect( unsigned int sp_type, int mag_pow, int mag_fail,
beam.thrower = (cause) ? KILL_MISC : KILL_YOU;
beam.aux_source = cause;
beam.ex_size = one_chance_in(4)?1:2;
+ beam.is_explosion = true;
explosion(beam);
break;