summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spells1.cc
diff options
context:
space:
mode:
authorzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2008-07-02 04:49:15 +0000
committerzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2008-07-02 04:49:15 +0000
commita384aae0f4236968ef5f2e753c6d5ec33f6dc246 (patch)
treefe75bd6c93a458145d06fe437ce4389294043325 /crawl-ref/source/spells1.cc
parentefa16086d78dc42f1f6d48e2a5a2d26adcedb04d (diff)
downloadcrawl-ref-a384aae0f4236968ef5f2e753c6d5ec33f6dc246.tar.gz
crawl-ref-a384aae0f4236968ef5f2e753c6d5ec33f6dc246.zip
If an explosion has its center in Sanctuary then give a message about
Zin containing the explosion. Mainly for miscast effects which cause explosions, but also catches the player casting spells which cause explosions. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6323 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/spells1.cc')
-rw-r--r--crawl-ref/source/spells1.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/spells1.cc b/crawl-ref/source/spells1.cc
index e10fd271c0..0636b4850e 100644
--- a/crawl-ref/source/spells1.cc
+++ b/crawl-ref/source/spells1.cc
@@ -261,8 +261,8 @@ void cast_fire_storm(int pow, bolt &beam)
beam.hit = 20 + pow / 10;
beam.damage = calc_dice(9, 20 + pow);
- explosion(beam, false, false, true, true, false);
- mpr("A raging storm of fire appears!");
+ if (explosion(beam, false, false, true, true, false) > 0)
+ mpr("A raging storm of fire appears!");
viewwindow(1, false);
}