diff options
author | Vsevolod Kozlov <zaba@thorium.homeunix.org> | 2009-11-06 11:48:29 +0300 |
---|---|---|
committer | Robert Vollmert <rvollmert@gmx.net> | 2009-11-06 09:56:26 +0100 |
commit | 37dddc69c063b655d028bdb33e5ab831b4af8a55 (patch) | |
tree | 55f621318adec99bda23eb02da3f8895381cd80e /crawl-ref/source/spells4.cc | |
parent | dbdfb48c0639aa101f25d210496e66bd6326873b (diff) | |
download | crawl-ref-37dddc69c063b655d028bdb33e5ab831b4af8a55.tar.gz crawl-ref-37dddc69c063b655d028bdb33e5ab831b4af8a55.zip |
Add actor::petrified, which replaces mons_is_petrified.
Signed-off-by: Robert Vollmert <rvollmert@gmx.net>
Diffstat (limited to 'crawl-ref/source/spells4.cc')
-rw-r--r-- | crawl-ref/source/spells4.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/spells4.cc b/crawl-ref/source/spells4.cc index bf965913da..3502c0db09 100644 --- a/crawl-ref/source/spells4.cc +++ b/crawl-ref/source/spells4.cc @@ -1531,7 +1531,7 @@ bool cast_fragmentation(int pow, const dist& spd) else { const bool petrifying = mons_is_petrifying(mon); - const bool petrified = mons_is_petrified(mon) && !petrifying; + const bool petrified = mon->petrified() && !petrifying; // Petrifying or petrified monsters can be exploded. if (petrifying || petrified) @@ -2100,7 +2100,7 @@ bool do_slow_monster(monsters* mon, kill_category whose_kill) && !mons_is_stationary(mon) && mon->add_ench(mon_enchant(ENCH_SLOW, 0, whose_kill))) { - if (!mon->paralysed() && !mons_is_petrified(mon) + if (!mon->paralysed() && !mon->petrified() && simple_monster_message(mon, " seems to slow down.")) { return (true); |