mirror of
https://github.com/magefree/mage.git
synced 2025-12-23 12:02:01 -08:00
Updated Naga Vitalist Test.
This commit is contained in:
parent
6afbcb638b
commit
1f801d24df
1 changed files with 5 additions and 14 deletions
|
|
@ -1,16 +1,11 @@
|
||||||
package org.mage.test.cards.mana;
|
package org.mage.test.cards.mana;
|
||||||
|
|
||||||
import mage.constants.Duration;
|
|
||||||
import mage.constants.ManaType;
|
import mage.constants.ManaType;
|
||||||
import mage.constants.PhaseStep;
|
import mage.constants.PhaseStep;
|
||||||
import mage.constants.Zone;
|
import mage.constants.Zone;
|
||||||
import mage.game.permanent.Permanent;
|
|
||||||
import org.junit.Assert;
|
import org.junit.Assert;
|
||||||
import org.junit.Ignore;
|
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
import org.mage.test.serverside.base.CardTestPlayerBase;
|
import org.mage.test.serverside.base.CardTestPlayerBase;
|
||||||
import org.mage.test.utils.ManaOptionsTestUtils;
|
|
||||||
|
|
||||||
import static org.mage.test.utils.ManaOptionsTestUtils.manaOptionsContain;
|
import static org.mage.test.utils.ManaOptionsTestUtils.manaOptionsContain;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -37,6 +32,7 @@ public class NagaVitalistTest extends CardTestPlayerBase {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void nagaVitalist_GiftOfParadiseCanAnyColor() {
|
public void nagaVitalist_GiftOfParadiseCanAnyColor() {
|
||||||
|
// Mana pools don't empty as steps and phases end.
|
||||||
addCard(Zone.BATTLEFIELD, playerA, "Upwelling");
|
addCard(Zone.BATTLEFIELD, playerA, "Upwelling");
|
||||||
addCard(Zone.BATTLEFIELD, playerA, "Forest", 3);
|
addCard(Zone.BATTLEFIELD, playerA, "Forest", 3);
|
||||||
addCard(Zone.HAND, playerA, giftParadise);
|
addCard(Zone.HAND, playerA, giftParadise);
|
||||||
|
|
@ -63,7 +59,6 @@ public class NagaVitalistTest extends CardTestPlayerBase {
|
||||||
addCard(Zone.BATTLEFIELD, playerA, "Swamp", 1);
|
addCard(Zone.BATTLEFIELD, playerA, "Swamp", 1);
|
||||||
addCard(Zone.BATTLEFIELD, playerA, nagaVitalist, 1);
|
addCard(Zone.BATTLEFIELD, playerA, nagaVitalist, 1);
|
||||||
|
|
||||||
|
|
||||||
// cast and enchant swamp land to any color
|
// cast and enchant swamp land to any color
|
||||||
activateManaAbility(giftCastTurn, PhaseStep.PRECOMBAT_MAIN, playerA, "{T}: Add {G}");
|
activateManaAbility(giftCastTurn, PhaseStep.PRECOMBAT_MAIN, playerA, "{T}: Add {G}");
|
||||||
activateManaAbility(giftCastTurn, PhaseStep.PRECOMBAT_MAIN, playerA, "{T}: Add {G}");
|
activateManaAbility(giftCastTurn, PhaseStep.PRECOMBAT_MAIN, playerA, "{T}: Add {G}");
|
||||||
|
|
@ -71,25 +66,22 @@ public class NagaVitalistTest extends CardTestPlayerBase {
|
||||||
castSpell(giftCastTurn, PhaseStep.PRECOMBAT_MAIN, playerA, giftParadise, "Swamp");
|
castSpell(giftCastTurn, PhaseStep.PRECOMBAT_MAIN, playerA, giftParadise, "Swamp");
|
||||||
|
|
||||||
// activate red mana (by any from enchanted land)
|
// activate red mana (by any from enchanted land)
|
||||||
activateManaAbility(nagaManaTapTurn, PhaseStep.PRECOMBAT_MAIN, playerA, "{T}: Add to your mana pool one mana of any");
|
activateManaAbility(nagaManaTapTurn, PhaseStep.POSTCOMBAT_MAIN, playerA, "{T}: Add to your mana pool one mana of any");
|
||||||
setChoice(playerA, nagaManaTapColor);
|
setChoice(playerA, nagaManaTapColor);
|
||||||
|
|
||||||
setStopAt(nagaManaTapTurn, PhaseStep.PRECOMBAT_MAIN);
|
setStopAt(nagaManaTapTurn, PhaseStep.POSTCOMBAT_MAIN);
|
||||||
execute();
|
execute();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@Ignore // TODO: need to fix - on naga mana tap swamp do not have added ability "add 2 any mana" (but it have after step complete)
|
|
||||||
public void nagaVitalist_GiftOfParadisesLandCanGiveAnyColorToNaga_SameStep1() {
|
public void nagaVitalist_GiftOfParadisesLandCanGiveAnyColorToNaga_SameStep1() {
|
||||||
nagaVitalist_GiftOfParadisesLandCanGiveAnyColorToNaga_Setup(1, 1, "Red");
|
nagaVitalist_GiftOfParadisesLandCanGiveAnyColorToNaga_Setup(1, 1, "Red");
|
||||||
|
|
||||||
|
|
||||||
//logger.info(playerA.getManaPool().getMana().toString());
|
//logger.info(playerA.getManaPool().getMana().toString());
|
||||||
//logger.info(playerA.getManaAvailable(currentGame).toString());
|
//logger.info(playerA.getManaAvailable(currentGame).toString());
|
||||||
//for(Permanent perm: currentGame.getBattlefield().getAllActivePermanents(playerA.getId())){
|
//for(Permanent perm: currentGame.getBattlefield().getAllActivePermanents(playerA.getId())){
|
||||||
// logger.info(perm.getIdName() + ": " + perm.getAbilities().toString());
|
// logger.info(perm.getIdName() + ": " + perm.getAbilities().toString());
|
||||||
//}
|
//}
|
||||||
|
|
||||||
assertTapped("Forest", true);
|
assertTapped("Forest", true);
|
||||||
assertTapped(giftParadise, false);
|
assertTapped(giftParadise, false);
|
||||||
assertTapped("Swamp", false);
|
assertTapped("Swamp", false);
|
||||||
|
|
@ -109,7 +101,6 @@ public class NagaVitalistTest extends CardTestPlayerBase {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@Ignore // TODO: need to fix - on naga mana tap swamp do not have added ability "add 2 any mana" (but it have after step complete)
|
|
||||||
public void nagaVitalist_GiftOfParadisesLandCanGiveAnyColorToNaga_SameStep3() {
|
public void nagaVitalist_GiftOfParadisesLandCanGiveAnyColorToNaga_SameStep3() {
|
||||||
nagaVitalist_GiftOfParadisesLandCanGiveAnyColorToNaga_Setup(3, 3, "Red");
|
nagaVitalist_GiftOfParadisesLandCanGiveAnyColorToNaga_Setup(3, 3, "Red");
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue