mirror of
https://github.com/magefree/mage.git
synced 2026-01-24 20:29:19 -08:00
fix test failure
This commit is contained in:
parent
d1b1a0092b
commit
e719cd03a3
1 changed files with 30 additions and 30 deletions
|
|
@ -20,31 +20,31 @@ public class CrypticTrilobiteTest extends CardTestPlayerBase {
|
|||
@Test
|
||||
public void testAvailableManaCalculation(){
|
||||
setStrictChooseMode(true);
|
||||
|
||||
|
||||
// Cryptic Trilobite enters the battlefield with X +1/+1 counters on it.
|
||||
// Remove a +1/+1 counter from Cryptic Trilobite: Add {C}{C}. Spend this mana only to activate abilities.
|
||||
// {1}, {T}: Put a +1/+1 counter on Cryptic Trilobite.
|
||||
addCard(Zone.HAND, playerA, "Cryptic Trilobite"); // Creature {X}{X}
|
||||
|
||||
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Swamp", 10);
|
||||
|
||||
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Cryptic Trilobite");
|
||||
|
||||
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Cryptic Trilobite");
|
||||
setChoice(playerA, "X=5");
|
||||
|
||||
|
||||
setStopAt(1, PhaseStep.BEGIN_COMBAT);
|
||||
execute();
|
||||
|
||||
assertPermanentCount(playerA, "Cryptic Trilobite", 1);
|
||||
|
||||
|
||||
ManaOptions manaOptions = playerA.getAvailableManaTest(currentGame);
|
||||
Assert.assertEquals("mana variations don't fit", 1, manaOptions.size());
|
||||
assertManaOptions("{C}{C}{C}{C}{C}{C}{C}{C}{C}{C}[{CrypticTrilobiteManaCondition}]", manaOptions);
|
||||
assertManaOptions("{C}{C}{C}{C}{C}{C}{C}{C}{C}{C}[{ActivatedAbilityManaCondition}]", manaOptions);
|
||||
}
|
||||
|
||||
|
||||
@Test
|
||||
public void testUse(){
|
||||
setStrictChooseMode(true);
|
||||
|
||||
|
||||
// Cryptic Trilobite enters the battlefield with X +1/+1 counters on it.
|
||||
// Remove a +1/+1 counter from Cryptic Trilobite: Add {C}{C}. Spend this mana only to activate abilities.
|
||||
// {1}, {T}: Put a +1/+1 counter on Cryptic Trilobite.
|
||||
|
|
@ -54,54 +54,54 @@ public class CrypticTrilobiteTest extends CardTestPlayerBase {
|
|||
// Soulshift 1 (When this creature dies, you may return target Spirit card with converted mana cost 1 or less from your graveyard to your hand.)
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Deathknell Kami"); // Creature (0/1)
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Swamp", 10);
|
||||
|
||||
|
||||
|
||||
|
||||
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Cryptic Trilobite", true);
|
||||
setChoice(playerA, "X=5");
|
||||
|
||||
|
||||
activateAbility(1, PhaseStep.PRECOMBAT_MAIN, playerA, "{2}:");
|
||||
activateAbility(1, PhaseStep.PRECOMBAT_MAIN, playerA, "{2}:");
|
||||
|
||||
|
||||
setStopAt(1, PhaseStep.BEGIN_COMBAT);
|
||||
execute();
|
||||
|
||||
assertPermanentCount(playerA, "Cryptic Trilobite", 1);
|
||||
assertCounterCount(playerA, "Cryptic Trilobite", CounterType.P1P1, 3);
|
||||
|
||||
|
||||
assertPowerToughness(playerA, "Deathknell Kami", 2, 3);
|
||||
|
||||
|
||||
ManaOptions manaOptions = playerA.getAvailableManaTest(currentGame);
|
||||
Assert.assertEquals("mana variations don't fit", 1, manaOptions.size());
|
||||
assertManaOptions("{C}{C}{C}{C}{C}{C}[{CrypticTrilobiteManaCondition}]", manaOptions);
|
||||
}
|
||||
|
||||
assertManaOptions("{C}{C}{C}{C}{C}{C}[{ActivatedAbilityManaCondition}]", manaOptions);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testCantUse(){
|
||||
setStrictChooseMode(true);
|
||||
|
||||
|
||||
// Cryptic Trilobite enters the battlefield with X +1/+1 counters on it.
|
||||
// Remove a +1/+1 counter from Cryptic Trilobite: Add {C}{C}. Spend this mana only to activate abilities.
|
||||
// {1}, {T}: Put a +1/+1 counter on Cryptic Trilobite.
|
||||
addCard(Zone.HAND, playerA, "Cryptic Trilobite"); // Creature {X}{X}
|
||||
|
||||
|
||||
// {4}{W}: Return another target creature you control to its owner's hand.
|
||||
addCard(Zone.HAND, playerA, "Aegis Automaton"); // Creature {2} (0/2)
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Swamp", 10);
|
||||
|
||||
|
||||
|
||||
|
||||
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Cryptic Trilobite");
|
||||
setChoice(playerA, "X=5");
|
||||
|
||||
|
||||
waitStackResolved(1, PhaseStep.PRECOMBAT_MAIN, playerA);
|
||||
|
||||
|
||||
checkPlayableAbility("can't play", 1, PhaseStep.PRECOMBAT_MAIN, playerA, "Cast Aegis Automaton", false);
|
||||
|
||||
|
||||
setStopAt(1, PhaseStep.BEGIN_COMBAT);
|
||||
execute();
|
||||
|
||||
assertPermanentCount(playerA, "Cryptic Trilobite", 1);
|
||||
assertCounterCount(playerA, "Cryptic Trilobite", CounterType.P1P1, 5);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
assertCounterCount(playerA, "Cryptic Trilobite", CounterType.P1P1, 5);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue