getBattlefield directly, not via getState

This commit is contained in:
xenohedron 2024-06-02 18:14:23 -04:00
parent 7a76a3b005
commit d8be015c65
40 changed files with 47 additions and 50 deletions

View file

@ -147,7 +147,7 @@ public class KikiJikiMirrorBreakerTest extends CardTestPlayerBase {
assertPermanentCount(playerB, "Silvercoat Lion", 2); // one from Body Double and one from Kiki
Permanent kikiCopy = null;
for (Permanent permanent : currentGame.getState().getBattlefield().getAllActivePermanents(StaticFilters.FILTER_PERMANENT_CREATURE, currentGame)) {
for (Permanent permanent : currentGame.getBattlefield().getAllActivePermanents(StaticFilters.FILTER_PERMANENT_CREATURE, currentGame)) {
if (permanent.getName().equals("Silvercoat Lion") && (permanent instanceof PermanentToken)) {
kikiCopy = permanent;
break;

View file

@ -347,7 +347,7 @@ public class ModalDoubleFacedCardsTest extends CardTestPlayerBase {
setStopAt(1, PhaseStep.END_TURN);
execute();
Card card = currentGame.getState().getBattlefield().getAllPermanents()
Card card = currentGame.getBattlefield().getAllPermanents()
.stream()
.filter(p -> CardUtil.haveSameNames(p, "Akoum Warrior", currentGame))
.findFirst()
@ -380,7 +380,7 @@ public class ModalDoubleFacedCardsTest extends CardTestPlayerBase {
execute();
assertHandCount(playerA, 0);
Card card = currentGame.getState().getBattlefield().getAllPermanents()
Card card = currentGame.getBattlefield().getAllPermanents()
.stream()
.filter(p -> CardUtil.haveSameNames(p, "Ondu Skyruins", currentGame))
.findFirst()