square with an invisible monster/mimic. Travel now cuts off when the PC attempts to attack the invisible monster.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@813 c06c8d41-db1a-0410-9941-cceddc491573
LXLUKS5CKXBUSVV3QTZ4SM7NWSY6JFQEBHUBQW2VUEU5DOL3RRLAC // If this is an invisible critter, say we're safe to get here, but// turn off travel - the result should be that the player bashes into// the monster and stops travelling right there. Same treatment applies// to mimics.if (!player_monster_visible(&menv[mon]) ||mons_is_mimic( menv[mon].type ))
// Stop before wasting energy on plants and fungi.if (player_monster_visible(&menv[mon])&& mons_class_flag( menv[mon].type, M_NO_EXP_GAIN ))