diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-06-24 16:40:11 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-06-24 16:40:11 +0000 |
commit | 5a92fff347e045f3504178415a77d5ed13b679d3 (patch) | |
tree | 72939556797dc363e9a320314f9962039cb43009 /crawl-ref/source/spells2.cc | |
parent | cadc3464fb071b71d222aa8d1d1fda6ea8df8160 (diff) | |
download | crawl-ref-5a92fff347e045f3504178415a77d5ed13b679d3.tar.gz crawl-ref-5a92fff347e045f3504178415a77d5ed13b679d3.zip |
Fix [2001885]: "Nothing appears to happen." was being printed when
"Summon Elemental" succeeded, rather than when it failed.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6115 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/spells2.cc')
-rw-r--r-- | crawl-ref/source/spells2.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/spells2.cc b/crawl-ref/source/spells2.cc index 865bbd514b..e37f0c4f10 100644 --- a/crawl-ref/source/spells2.cc +++ b/crawl-ref/source/spells2.cc @@ -1534,7 +1534,7 @@ bool cast_summon_elemental(int pow, god_type god, friendly ? BEH_FRIENDLY : BEH_HOSTILE, dur, coord_def(targ_x, targ_y), friendly ? you.pet_target : MHITYOU, - 0, god)) != -1) + 0, god)) == -1) { canned_msg(MSG_NOTHING_HAPPENS); return (false); |