1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-24 17:10:36 +00:00

fixed Friendly Ivy attacking non-attackable monsters

This commit is contained in:
Zeno Rogue 2019-04-05 13:44:04 +02:00
parent 83d8025133
commit 463e874520

View File

@ -1083,7 +1083,7 @@ eItem targetRangedOrb(cell *c, orbAction a) {
if(cf->monst == moFriendlyIvy) { if(cf->monst == moFriendlyIvy) {
if(c->monst) { if(c->monst) {
if(!canAttack(c, c->monst, cf, moFriendlyIvy, 0)) continue; if(!canAttack(cf, moFriendlyIvy, c, c->monst, 0)) continue;
if(monstersnear(cwt.at, c, moPlayer, NULL, cwt.at)) continue; if(monstersnear(cwt.at, c, moPlayer, NULL, cwt.at)) continue;
} }
else { else {