From aeb4ec07c472d019e92cd769bbd6484439aa7f86 Mon Sep 17 00:00:00 2001 From: j-p-e-g Date: Thu, 17 Sep 2009 22:04:34 +0000 Subject: Add a check for whether a monster with water habitat can reach the player and only consider such monster unsafe if there is a path. Replace the old runrest_ignore_monster checks for aquatic monsters with this one, which has the side effect of being nicer to Merfolk. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10701 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/monstuff.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crawl-ref/source/monstuff.cc') diff --git a/crawl-ref/source/monstuff.cc b/crawl-ref/source/monstuff.cc index a7f15367a1..358b1da0c2 100644 --- a/crawl-ref/source/monstuff.cc +++ b/crawl-ref/source/monstuff.cc @@ -1220,7 +1220,7 @@ void mons_relocated(monsters *monster) else if (monster->type == MONS_KRAKEN_TENTACLE) { if (invalid_monster_index(monster->number) - || menv[monster->number].type!=MONS_KRAKEN + || menv[monster->number].type != MONS_KRAKEN || _tentacle_too_far(&menv[monster->number], monster)) { monster_die(monster, KILL_RESET, -1, true, false); -- cgit v1.2.3-54-g00ecf