summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/monster.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/monster.cc')
-rw-r--r--crawl-ref/source/monster.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/monster.cc b/crawl-ref/source/monster.cc
index 8d0f02f428..1e88b10f33 100644
--- a/crawl-ref/source/monster.cc
+++ b/crawl-ref/source/monster.cc
@@ -188,7 +188,7 @@ static bool _player_near_water()
bool monsters::wants_submerge() const
{
// Krakens never retreat when food (the player) is in range.
- if (type == MONS_KRAKEN)
+ if (mons_base_type(this) == MONS_KRAKEN)
if (_player_near_water())
return (false);
@@ -5994,7 +5994,7 @@ void monsters::react_to_damage(int damage, beam_type flavour, kill_category whos
else if (type == MONS_KRAKEN_TENTACLE && flavour != BEAM_TORMENT_DAMAGE)
{
if (!invalid_monster_index(number)
- && menv[number].type == MONS_KRAKEN)
+ && mons_base_type(&menv[number]) == MONS_KRAKEN)
{
menv[number].hurt(&you, damage, flavour);