Show mon vs mon attack messages only when target is visible
commitb5a027c3fedbfef1c8abad4ffe3dd249ae0d79bb
authorPasi Kallinen <paxed@alt.org>
Fri, 16 Sep 2016 18:28:19 +0000 (16 21:28 +0300)
committerPasi Kallinen <paxed@alt.org>
Fri, 16 Sep 2016 18:28:23 +0000 (16 21:28 +0300)
tree67c3fd4300e1a2ad255195db769bbb7e5cf3e60a
parentcd2703dc358f056c9ac4c73444afba4753977428
Show mon vs mon attack messages only when target is visible

The visibility check in mattackm doesn't guarantee both the
attacker and defender can be seen by hero. Before giving
messages, check more strictly whether we could see the
message happening - either really seeing the monster or
sensing the monster by some other means, depending on
the message.  This should remove most of the "It" messages.

Also unhide mimics who get gazed by umber hulks.  We could
keep the mimic hidden and make the messages reflect the
hulk gazing at the thing the mimic is mimicing, but this
is much easier.  This fixes bz631 / H4500
src/eat.c
src/mhitm.c