From a639fc9fa82e60bb38792361e1c2bb3242cbd5fc Mon Sep 17 00:00:00 2001 From: dshaligram Date: Sun, 4 Mar 2007 09:56:55 +0000 Subject: Ignite poison should wake affected monsters (Juha). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@976 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/spells4.cc | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'crawl-ref/source/spells4.cc') diff --git a/crawl-ref/source/spells4.cc b/crawl-ref/source/spells4.cc index cc79bf91d4..91eebad12c 100644 --- a/crawl-ref/source/spells4.cc +++ b/crawl-ref/source/spells4.cc @@ -1066,6 +1066,8 @@ static int ignite_poison_monsters(int x, int y, int pow, int garbage) // Monster survived, remove any poison. mons_del_ench( mon, ENCH_POISON_I, ENCH_POISON_IV ); mons_del_ench( mon, ENCH_YOUR_POISON_I, ENCH_YOUR_POISON_IV ); + + behaviour_event( mon, ME_ALERT ); } return (1); @@ -1079,7 +1081,6 @@ void cast_ignite_poison(int pow) int damage = 0, strength = 0, pcount = 0, acount = 0, totalstrength = 0; char item; bool wasWielding = false; - char str_pass[ ITEMNAME_SIZE ]; // temp weapon of venom => temp fire brand const int wpn = you.equip[EQ_WEAPON]; @@ -1090,10 +1091,7 @@ void cast_ignite_poison(int pow) { if (set_item_ego_type( you.inv[wpn], OBJ_WEAPONS, SPWPN_FLAMING )) { - in_name( wpn, DESC_CAP_YOUR, str_pass ); - strcpy( info, str_pass ); - strcat( info, " bursts into flame!" ); - mpr(info); + mprf("%s bursts into flame!", in_name(wpn, DESC_CAP_YOUR)); you.wield_change = true; you.duration[DUR_WEAPON_BRAND] += 1 + you.duration[DUR_WEAPON_BRAND] / 2; @@ -1153,7 +1151,7 @@ void cast_ignite_poison(int pow) } if (acount > 0) - mpr("Some ammo you are carrying burns!"); + mpr("Some ammunition you are carrying burns!"); if (pcount > 0) { -- cgit v1.2.3-54-g00ecf