summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spells3.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-03-14 23:04:25 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-03-14 23:04:25 +0000
commitcc6e8a31098fa2a0b1a1634c98a7422686d7816d (patch)
tree4cab29ff00eef0d7f42939970ad3f9bd949127ae /crawl-ref/source/spells3.cc
parentdc9818f51f12decc30475d7d616f5ae4313e509d (diff)
downloadcrawl-ref-cc6e8a31098fa2a0b1a1634c98a7422686d7816d.tar.gz
crawl-ref-cc6e8a31098fa2a0b1a1634c98a7422686d7816d.zip
Add more miscellaneous minor fixes.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9483 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/spells3.cc')
-rw-r--r--crawl-ref/source/spells3.cc21
1 files changed, 10 insertions, 11 deletions
diff --git a/crawl-ref/source/spells3.cc b/crawl-ref/source/spells3.cc
index f356f34e4c..8ee9e5e357 100644
--- a/crawl-ref/source/spells3.cc
+++ b/crawl-ref/source/spells3.cc
@@ -564,6 +564,7 @@ bool cast_shadow_creatures(god_type god)
}
player_angers_monster(&menv[monster]);
+
return (true);
}
@@ -1006,25 +1007,23 @@ bool cast_simulacrum(int pow, god_type god)
for (int i = 0; i < how_many; ++i)
{
- if (create_monster(
+ const int monster =
+ create_monster(
mgen_data(MONS_SIMULACRUM_SMALL, BEH_FRIENDLY,
6, SPELL_SIMULACRUM,
you.pos(), MHITYOU,
- 0, god, mon)) != -1)
+ 0, god, mon));
+
+ if (monster != -1)
{
count++;
+
+ player_angers_monster(&menv[monster]);
}
}
- if (count > 0)
- {
- mprf("%s icy figure%s form%s before you!",
- count > 1 ? "Some" : "An", count > 1 ? "s" : "",
- count > 1 ? "" : "s");
- rc = true;
- }
- else
- mpr("You feel cold for a second.");
+ if (count == 0)
+ canned_msg(MSG_NOTHING_HAPPENS);
}
else
{