diff --git a/Mage.Tests/src/test/java/org/mage/test/multiplayer/MyriadTest.java b/Mage.Tests/src/test/java/org/mage/test/multiplayer/MyriadTest.java index 8f93c6ebee..0538e0c3d6 100644 --- a/Mage.Tests/src/test/java/org/mage/test/multiplayer/MyriadTest.java +++ b/Mage.Tests/src/test/java/org/mage/test/multiplayer/MyriadTest.java @@ -1,7 +1,5 @@ - package org.mage.test.multiplayer; -import java.io.FileNotFoundException; import mage.constants.MultiplayerAttackOption; import mage.constants.PhaseStep; import mage.constants.RangeOfInfluence; @@ -12,8 +10,9 @@ import mage.game.GameException; import org.junit.Test; import org.mage.test.serverside.base.CardTestMultiPlayerBase; +import java.io.FileNotFoundException; + /** - * * @author LevelX2 */ public class MyriadTest extends CardTestMultiPlayerBase { @@ -72,27 +71,32 @@ public class MyriadTest extends CardTestMultiPlayerBase { // Myriad (Whenever this creature attacks, for each opponent other than the defending player, put a token that's a copy of this creature onto the battlefield tapped and attacking that player or a planeswalker he or she controls. Exile those tokens at the end of combat.) addCard(Zone.BATTLEFIELD, playerD, "Caller of the Pack"); // 8/6 + // turns: A, D, C, B + // +1: You gain 2 life. // -1: Put a +1/+1 counter on each creature you control. Those creatures gain vigilance until end of turn. // -6: Create a white Avatar creature token. It has "This creature's power and toughness are each equal to your life total." addCard(Zone.BATTLEFIELD, playerA, "Ajani Goldmane"); + // +2 life activateAbility(1, PhaseStep.PRECOMBAT_MAIN, playerA, "+1:"); + checkLife("must have +2 life", 2, PhaseStep.PRECOMBAT_MAIN, playerA, 40 + 2); + // D attack C, create 2 copy of caller (for each opponent exclude defender = 2) and attack to ajani attack(2, playerD, "Caller of the Pack", playerC); - addTarget(playerD, "Ajani Goldmane"); + addTarget(playerD, "Ajani Goldmane"); // select ajani instead playerA for pack attack + checkPermanentCount("must have 3 packs", 2, PhaseStep.END_COMBAT, playerD, "Caller of the Pack", 3); + checkPermanentCount("ajani must die", 2, PhaseStep.END_COMBAT, playerA, "Ajani Goldmane", 0); + checkLife("pack must not damage playerA", 2, PhaseStep.END_COMBAT, playerA, 40 + 2); + checkLife("pack must damage playerB by 8", 2, PhaseStep.END_COMBAT, playerB, 40 - 8); + checkLife("pack must damage playerC", 2, PhaseStep.END_COMBAT, playerC, 40 - 8); + checkLife("pack must not damage playerD", 2, PhaseStep.END_COMBAT, playerD, 40); setStopAt(2, PhaseStep.POSTCOMBAT_MAIN); execute(); assertPermanentCount(playerD, "Caller of the Pack", 1); assertGraveyardCount(playerA, "Ajani Goldmane", 1); - - assertLife(playerA, 42); - assertLife(playerB, 32); - assertLife(playerC, 32); - assertLife(playerD, 40); - } /**