fix previous #332 fix

Add missing visibility check.
This commit is contained in:
PatR
2020-04-25 19:17:46 -07:00
parent 7b9ce40388
commit 42ffce0e5d
+5 -3
View File
@@ -976,9 +976,11 @@ int dieroll;
now we'll know and might need to deliver skipped message now we'll know and might need to deliver skipped message
(note: if there's no message there'll be no auxilliary (note: if there's no message there'll be no auxilliary
damage so the message here isn't coming too late) */ damage so the message here isn't coming too late) */
if (!artifact_hit(magr, mdef, mwep, &tmp, dieroll)) if (!artifact_hit(magr, mdef, mwep, &tmp, dieroll)) {
pline("%s hits %s.", Monnam(magr), if (g.vis)
mon_nam_too(mdef, magr)); pline("%s hits %s.", Monnam(magr),
mon_nam_too(mdef, magr));
}
/* artifact_hit updates 'tmp' but doesn't inflict any /* artifact_hit updates 'tmp' but doesn't inflict any
damage; however, it might cause carried items to be damage; however, it might cause carried items to be
destroyed and they might do so */ destroyed and they might do so */