mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-23 21:07:17 +00:00
fixed some bugs with the activation of Orb of Yendor
This commit is contained in:
parent
edc70be39e
commit
5747e8eacd
7
game.cpp
7
game.cpp
@ -6448,6 +6448,10 @@ bool movepcto(int d, int subdir, bool checkonly) {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(c2->item == itOrbYendor && !checkonly && !peace::on && !itemHiddenFromSight(c2) && yendor::check(c2)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
if(isWatery(c2) && !nonAdjacentPlayer(cwt.c,c2) && !c2->monst && cwt.c->wall == waBoat) {
|
if(isWatery(c2) && !nonAdjacentPlayer(cwt.c,c2) && !c2->monst && cwt.c->wall == waBoat) {
|
||||||
|
|
||||||
if(havePushConflict(cwt.c, checkonly)) return false;
|
if(havePushConflict(cwt.c, checkonly)) return false;
|
||||||
@ -6712,9 +6716,6 @@ bool movepcto(int d, int subdir, bool checkonly) {
|
|||||||
addMessage("Are you sure you want to step there?");
|
addMessage("Are you sure you want to step there?");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if(c2->item == itOrbYendor && !boatmove && !checkonly && !peace::on && yendor::check(c2)) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
if(monstersnear(c2, NULL, moPlayer, NULL, cwt.c)) {
|
if(monstersnear(c2, NULL, moPlayer, NULL, cwt.c)) {
|
||||||
if(checkonly) return false;
|
if(checkonly) return false;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user