use of mage.abilities.mana.ManaOptions in project mage by magefree.
the class ManaOptionsTest method testChromaticSphere.
// Chromatic Sphere
// {1}, {T}, Sacrifice Chromatic Sphere: Add one mana of any color. Draw a card.
@Test
public void testChromaticSphere() {
addCard(Zone.BATTLEFIELD, playerA, "Plains", 2);
addCard(Zone.BATTLEFIELD, playerA, "Chromatic Sphere", 2);
setStopAt(1, PhaseStep.UPKEEP);
execute();
ManaOptions manaOptions = playerA.getAvailableManaTest(currentGame);
assertDuplicatedManaOptions(manaOptions);
Assert.assertEquals("mana variations don't fit", 1, manaOptions.size());
assertManaOptions("{Any}{Any}", manaOptions);
}
use of mage.abilities.mana.ManaOptions in project mage by magefree.
the class ManaOptionsTest method testNykthos2.
@Test
public void testNykthos2() {
addCard(Zone.BATTLEFIELD, playerA, "Sedge Scorpion", 4);
addCard(Zone.BATTLEFIELD, playerA, "Akroan Crusader", 3);
// {G}
addCard(Zone.BATTLEFIELD, playerA, "Forest", 3);
// {C}
addCard(Zone.BATTLEFIELD, playerA, "Nykthos, Shrine to Nyx", 1);
setStopAt(1, PhaseStep.UPKEEP);
execute();
ManaOptions manaOptions = playerA.getAvailableManaTest(currentGame);
assertDuplicatedManaOptions(manaOptions);
Assert.assertEquals("mana variations don't fit", 3, manaOptions.size());
assertManaOptions("{C}{G}{G}{G}", manaOptions);
assertManaOptions("{G}{G}{G}{G}{G}", manaOptions);
assertManaOptions("{R}{R}{R}{G}", manaOptions);
}
use of mage.abilities.mana.ManaOptions in project mage by magefree.
the class ManaOptionsTest method testManaSourcesWithCosts.
@Test
public void testManaSourcesWithCosts() {
// {T}: Add {C} to your mana pool.
// {5}, {T}: Add {W}{U}{B}{R}{G} to your mana pool.
addCard(Zone.BATTLEFIELD, playerA, "Crystal Quarry", 1);
// {T}: Add {C} to your mana pool.
// {W/B}, {T}: Add {W}{W}, {W}{B}, or {B}{B} to your mana pool.
addCard(Zone.BATTLEFIELD, playerA, "Fetid Heath", 3);
addCard(Zone.BATTLEFIELD, playerA, "Plains", 3);
setStopAt(1, PhaseStep.UPKEEP);
execute();
ManaOptions manaOptions = playerA.getAvailableManaTest(currentGame);
assertDuplicatedManaOptions(manaOptions);
Assert.assertEquals("mana variations don't fit", 16, manaOptions.size());
assertManaOptions("{C}{C}{C}{C}{W}{W}{W}", manaOptions);
assertManaOptions("{C}{C}{C}{W}{W}{W}{W}", manaOptions);
assertManaOptions("{C}{C}{C}{W}{W}{W}{B}", manaOptions);
assertManaOptions("{C}{C}{C}{W}{W}{B}{B}", manaOptions);
assertManaOptions("{C}{C}{W}{W}{W}{W}{W}", manaOptions);
assertManaOptions("{C}{C}{W}{W}{W}{W}{B}", manaOptions);
assertManaOptions("{C}{C}{W}{W}{W}{B}{B}", manaOptions);
assertManaOptions("{C}{C}{W}{W}{B}{B}{B}", manaOptions);
assertManaOptions("{C}{C}{W}{B}{B}{B}{B}", manaOptions);
assertManaOptions("{C}{W}{W}{W}{W}{W}{W}", manaOptions);
assertManaOptions("{C}{W}{W}{W}{W}{W}{B}", manaOptions);
assertManaOptions("{C}{W}{W}{W}{W}{B}{B}", manaOptions);
assertManaOptions("{C}{W}{W}{W}{B}{B}{B}", manaOptions);
assertManaOptions("{C}{W}{W}{B}{B}{B}{B}", manaOptions);
assertManaOptions("{C}{W}{B}{B}{B}{B}{B}", manaOptions);
assertManaOptions("{C}{B}{B}{B}{B}{B}{B}", manaOptions);
}
use of mage.abilities.mana.ManaOptions in project mage by magefree.
the class ManaOptionsTest method testSimpleMana.
@Test
public void testSimpleMana() {
addCard(Zone.BATTLEFIELD, playerA, "Forest", 3);
setStopAt(1, PhaseStep.UPKEEP);
execute();
ManaOptions manaOptions = playerA.getAvailableManaTest(currentGame);
assertDuplicatedManaOptions(manaOptions);
Assert.assertEquals("mana variations don't fit", 1, manaOptions.size());
assertManaOptions("{G}{G}{G}", manaOptions);
}
use of mage.abilities.mana.ManaOptions in project mage by magefree.
the class ManaOptionsTest method testAdarkarWastes.
// Adarkar Wastes
// {T}: Add {C}.
// {T}: Add {W} or {U}. Adarkar Wastes deals 1 damage to you.
@Test
public void testAdarkarWastes() {
addCard(Zone.BATTLEFIELD, playerA, "Adarkar Wastes", 3);
setStopAt(1, PhaseStep.UPKEEP);
execute();
ManaOptions manaOptions = playerA.getAvailableManaTest(currentGame);
assertDuplicatedManaOptions(manaOptions);
Assert.assertEquals("mana variations don't fit", 10, manaOptions.size());
assertManaOptions("{C}{C}{C}", manaOptions);
assertManaOptions("{C}{C}{W}", manaOptions);
assertManaOptions("{C}{C}{U}", manaOptions);
assertManaOptions("{C}{W}{W}", manaOptions);
assertManaOptions("{C}{W}{U}", manaOptions);
assertManaOptions("{C}{U}{U}", manaOptions);
assertManaOptions("{W}{W}{W}", manaOptions);
assertManaOptions("{W}{W}{U}", manaOptions);
assertManaOptions("{W}{U}{U}", manaOptions);
assertManaOptions("{U}{U}{U}", manaOptions);
}
Aggregations