diff options
author | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-03-04 09:56:55 +0000 |
---|---|---|
committer | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-03-04 09:56:55 +0000 |
commit | a639fc9fa82e60bb38792361e1c2bb3242cbd5fc (patch) | |
tree | cc1e6a76f58e5c63783fb639b1df9e1350d522d6 /crawl-ref/source/spells4.cc | |
parent | 773c08f11c9f726ca5be643ba97aba1d70c006cc (diff) | |
download | crawl-ref-a639fc9fa82e60bb38792361e1c2bb3242cbd5fc.tar.gz crawl-ref-a639fc9fa82e60bb38792361e1c2bb3242cbd5fc.zip |
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
Diffstat (limited to 'crawl-ref/source/spells4.cc')
-rw-r--r-- | crawl-ref/source/spells4.cc | 10 |
1 files changed, 4 insertions, 6 deletions
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) { |