mirror of
https://github.com/magefree/mage.git
synced 2025-12-30 07:22:03 -08:00
getBattlefield directly, not via getState
This commit is contained in:
parent
7a76a3b005
commit
d8be015c65
40 changed files with 47 additions and 50 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue