summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/item_use.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-01-17 01:17:44 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-01-17 01:17:44 +0000
commit1b5f70fc811d5ba602d5743263b062b1c007d17a (patch)
tree8ca2e6e67bb38f7f0789c73bab7a872db2d1c223 /crawl-ref/source/item_use.cc
parenta226812664575190c3f60efc177903a80a8e774a (diff)
downloadcrawl-ref-1b5f70fc811d5ba602d5743263b062b1c007d17a.tar.gz
crawl-ref-1b5f70fc811d5ba602d5743263b062b1c007d17a.zip
Anger abominations created via scrolls of summoning after the initial
summoning message. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8481 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/item_use.cc')
-rw-r--r--crawl-ref/source/item_use.cc11
1 files changed, 8 insertions, 3 deletions
diff --git a/crawl-ref/source/item_use.cc b/crawl-ref/source/item_use.cc
index b50de889d3..fe1a1c8bdf 100644
--- a/crawl-ref/source/item_use.cc
+++ b/crawl-ref/source/item_use.cc
@@ -4857,11 +4857,15 @@ void read_scroll(int slot)
break;
case SCR_SUMMONING:
- if (create_monster(
- mgen_data(MONS_ABOMINATION_SMALL, BEH_FRIENDLY,
- 0, 0, you.pos(), you.pet_target)) != -1)
+ {
+ const int monster = create_monster(
+ mgen_data(MONS_ABOMINATION_SMALL, BEH_FRIENDLY,
+ 0, 0, you.pos(), you.pet_target,
+ MG_FORCE_BEH));
+ if (monster != -1)
{
mpr("A horrible Thing appears!");
+ player_angers_monster(&menv[monster]);
}
else
{
@@ -4869,6 +4873,7 @@ void read_scroll(int slot)
id_the_scroll = false;
}
break;
+ }
case SCR_FOG:
mpr("The scroll dissolves into smoke.");