code clean

This commit is contained in:
Oleg Agafonov 2024-04-16 23:37:22 +04:00
parent e8e2f23284
commit 88eb35ebc7
3 changed files with 136 additions and 144 deletions

View file

@ -52,7 +52,6 @@ public class SasayaOrochiAscendantTest extends CardTestPlayerBase {
public void testSasayasEssence() {
addCard(Zone.HAND, playerA, "Plains", 7);
addCard(Zone.BATTLEFIELD, playerA, "Forest", 3);
addCard(Zone.BATTLEFIELD, playerB, "Fountain of Renewal", 5);
// Reveal your hand: If you have seven or more land cards in your hand, flip Sasaya, Orochi Ascendant.
// Sasaya's Essence: Legendary Enchantment

View file

@ -1723,8 +1723,6 @@ public abstract class GameImpl implements Game {
// tests - try to fail fast
throw new MageException(UNIT_TESTS_ERROR_TEXT);
}
} finally {
//setCheckPlayableState(false); // TODO: delete
}
state.getPlayerList().getNext();
}
@ -1743,7 +1741,6 @@ public abstract class GameImpl implements Game {
} finally {
resetLKI();
clearAllBookmarks();
//setCheckPlayableState(false);
}
}

View file

@ -4078,7 +4078,6 @@ public abstract class PlayerImpl implements Player, Serializable {
}
Game game = originalGame.createSimulationForPlayableCalc();
try {
ManaOptions availableMana = getManaAvailable(game); // get available mana options (mana pool and conditional mana added (but conditional still lose condition))
boolean fromAll = fromZone.equals(Zone.ALL);
if (hidden && (fromAll || fromZone == Zone.HAND)) {
@ -4246,9 +4245,6 @@ public abstract class PlayerImpl implements Player, Serializable {
} else {
playable.addAll(activatedAll);
}
} finally {
//game.setCheckPlayableState(previousState); // TODO: delete
}
// make sure it independent of sim game
return playable.stream()