From 1b490890d245da181d79e8730f1357759028eb9e Mon Sep 17 00:00:00 2001 From: Matthew Cline Date: Sun, 15 Nov 2009 20:21:51 -0800 Subject: Bug #2896412: Breath broken after polymorph If a wizard or priest is polymorphed into a monster without hands, then when it casts a spell preserved across the polymorph (rather than any innate ability or spell) then to avoid getting weird messages (like "Harold breaths UNSEEN BEAM at you") the first lookup key for dat/database/monspell.txt is "polymorphed wizard" or "polymorphed priest." NOTE: There should probably be a greater variety of messages depending on shpae, like "quadruped wizard" and "blob wizard". --- crawl-ref/source/mon-cast.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'crawl-ref/source/mon-cast.h') diff --git a/crawl-ref/source/mon-cast.h b/crawl-ref/source/mon-cast.h index 390f563875..896c377ceb 100644 --- a/crawl-ref/source/mon-cast.h +++ b/crawl-ref/source/mon-cast.h @@ -20,8 +20,9 @@ bool handle_mon_spell(monsters *monster, bolt &beem); bolt mons_spells(monsters *mons, spell_type spell_cast, int power, bool check_validity = false); void mons_cast(monsters *monster, bolt &pbolt, spell_type spell_cast, - bool do_noise = true); -void mons_cast_noise(monsters *monster, bolt &pbolt, spell_type spell_cast); + bool do_noise = true, bool special_ability = false); +void mons_cast_noise(monsters *monster, bolt &pbolt, spell_type spell_cast, + bool special_ability = false); bool setup_mons_cast(monsters *monster, bolt &pbolt, spell_type spell_cast, bool check_validity = false); -- cgit v1.2.3-54-g00ecf