1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-27 14:37:16 +00:00

when setting Elemental Wall as cheat destination, Elemental Wall itself is no longer picked

This commit is contained in:
Zeno Rogue 2022-11-03 19:34:15 +01:00
parent 320aac6b9a
commit 622bb9e5f7

View File

@ -379,7 +379,7 @@ EX eLand getNewLand(eLand old) {
eLand l = callhandlers(laNone, hooks_nextland, old);
if(l) return l;
if(cheatdest != old) if(!isCyclic(cheatdest) && !isTechnicalLand(cheatdest)) return cheatdest;
if(cheatdest != old && cheatdest != laElementalWall) if(!isCyclic(cheatdest) && !isTechnicalLand(cheatdest)) return cheatdest;
if(old == laTortoise) return laDragon;
@ -425,9 +425,9 @@ EX eLand getNewLand(eLand old) {
#endif
if(tactic::on) return specialland;
if(specialland != old && easy_to_find_specialland) return specialland;
if(specialland != old && easy_to_find_specialland && specialland != laElementalWall) return specialland;
if(specialland != old && easy_specialland) {
if(specialland != old && easy_specialland && specialland != laElementalWall) {
easy_specialland--;
return specialland;
}