Updated commander zone change rules (ready for review) (#6620)

* updated commander zone change rules

* moved commander tracking into game state

* fixed a zone change error

* fixed some more tests for new commander rule

* updated variable names

* updated a test name
This commit is contained in:
Evan Kranzler 2020-06-12 07:42:36 -04:00 committed by GitHub
parent 8902fb1002
commit 63851b73a1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 52 additions and 9 deletions

View file

@ -160,7 +160,7 @@ public class CastBRGCommanderTest extends CardTestCommanderDuelBase {
assertGraveyardCount(playerA, "Mogg Infestation", 1);
assertCommandZoneCount(playerB, "Daxos of Meletis", 1);
assertPermanentCount(playerB, "Goblin", 0);
assertPermanentCount(playerB, "Goblin", 2);
}

View file

@ -110,8 +110,8 @@ public class CommanderReplaceEffectTest extends CardTestCommanderDuelBase {
execute();
assertPermanentCount(playerA, "Soulherder", 1);
assertPermanentCount(playerA, "Daxos of Meletis", 0);
assertCommandZoneCount(playerA, "Daxos of Meletis", 1);
assertPermanentCount(playerA, "Daxos of Meletis", 1);
assertCommandZoneCount(playerA, "Daxos of Meletis", 0);
assertPowerToughness(playerA, "Soulherder", 2, 2);
}

View file

@ -52,7 +52,6 @@ public class MythUnboundTest extends CardTestCommanderDuelBase {
assertPermanentCount(playerA, "Myth Unbound", 1);
assertGraveyardCount(playerB, "Lightning Bolt", 1);
assertPermanentCount(playerA, "Oviya Pashiri, Sage Lifecrafter", 1);
assertHandCount(playerA, 1);
assertTappedCount("Forest", false, 4 - 3); // 1 for first, 2 for second cast
}
}

View file

@ -72,7 +72,7 @@ public class NorinTheWaryTest extends CardTestCommanderDuelBase {
}
@Test
public void castNorinTheWaryToCommandAndReturn() {
public void castNorinTheWaryToCommandAndNotReturn() {
addCard(Zone.BATTLEFIELD, playerA, "Mountain", 2);
addCard(Zone.HAND, playerA, "Lightning Bolt", 1);
@ -83,8 +83,9 @@ public class NorinTheWaryTest extends CardTestCommanderDuelBase {
execute();
assertGraveyardCount(playerA, "Lightning Bolt", 1);
assertPermanentCount(playerA, "Norin the Wary", 1);
assertPermanentCount(playerA, "Norin the Wary", 0);
assertExileCount("Norin the Wary", 0);
assertCommandZoneCount(playerA, "Norin the Wary", 1);
assertLife(playerB, 37);