Merge pull request #289 from jruderman/illusion_item

Orb of Trickery messages no longer reveal underwater items
This commit is contained in:
Zeno Rogue 2021-08-09 13:49:28 +02:00 committed by GitHub
commit 838b9d0b10
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1475,7 +1475,7 @@ EX eItem targetRangedOrb(cell *c, orbAction a) {
// (2) place illusion
if(!shmup::on && items[itOrbIllusion]
&& CHK(c->monst == moNone, XLAT("Cannot cast illusion on a monster!"))
&& CHK(c->item == itNone, XLAT("Cannot cast illusion on an item!"))
&& CHK(c->item == itNone || itemHidden(c), XLAT("Cannot cast illusion on an item!"))
&& CHK(passable(c, NULL, P_MIRROR), XLAT("Cannot cast illusion here!"))) {
if(!isCheck(a)) placeIllusion(c), apply_impact(c);
return itOrbIllusion;