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:
parent
83d8025133
commit
463e874520
2
orbs.cpp
2
orbs.cpp
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user