diff options
author | Vsevolod Kozlov <zaba@thorium.homeunix.org> | 2009-11-07 17:33:57 +0300 |
---|---|---|
committer | Charles Otto <ottochar@gmail.com> | 2009-11-07 10:42:15 -0500 |
commit | 2ac4093ff9bbefed1ba51a3865507ac49a419bbd (patch) | |
tree | 70540da625559c02abc8094107f6a651c7e26f41 /crawl-ref/source/spells2.cc | |
parent | 96b804bb7a2bdc6ad25c6b45975bc0d4c8f19fbb (diff) | |
download | crawl-ref-2ac4093ff9bbefed1ba51a3865507ac49a419bbd.tar.gz crawl-ref-2ac4093ff9bbefed1ba51a3865507ac49a419bbd.zip |
Replace mons_is_summoned with monsters::is_summoned.
Signed-off-by: Charles Otto <ottochar@gmail.com>
Diffstat (limited to 'crawl-ref/source/spells2.cc')
-rw-r--r-- | crawl-ref/source/spells2.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/spells2.cc b/crawl-ref/source/spells2.cc index 034e891c6c..0ec3313248 100644 --- a/crawl-ref/source/spells2.cc +++ b/crawl-ref/source/spells2.cc @@ -696,7 +696,7 @@ void drain_life(int pow) const int hurted = 3 + random2(7) + random2(pow); behaviour_event(monster, ME_WHACK, MHITYOU, you.pos()); - if (!mons_is_summoned(monster)) + if (!monster->is_summoned()) hp_gain += hurted; monster->hurt(&you, hurted); @@ -775,7 +775,7 @@ bool vampiric_drain(int pow, const dist &vmove) return (false); } - const bool mons_was_summoned = mons_is_summoned(monster); + const bool mons_was_summoned = monster->is_summoned(); monster->hurt(&you, hp_gain); |