mirror of
https://github.com/magefree/mage.git
synced 2025-12-22 19:41:59 -08:00
* Morselhoarder - Fixed calculation of available mana and some cleanup to other mana abilities (#6698).
This commit is contained in:
parent
98ebcc07ca
commit
4d43914673
8 changed files with 42 additions and 60 deletions
|
|
@ -84,7 +84,7 @@ public class AngelOfJubilationTest extends CardTestPlayerBase {
|
|||
|
||||
activateAbility(1, PhaseStep.PRECOMBAT_MAIN, playerB, "{2}, Sacrifice a permanent you control: Return target creature to its owner's hand.");
|
||||
addTarget(playerB, "Angel of Jubilation"); // return to hand
|
||||
setChoice(playerB, "Food Chain"); // cacrifice cost
|
||||
setChoice(playerB, "Food Chain"); // sacrifice cost
|
||||
|
||||
setStrictChooseMode(true);
|
||||
setStopAt(1, PhaseStep.END_TURN);
|
||||
|
|
|
|||
|
|
@ -278,4 +278,22 @@ public class TappedForManaRelatedTest extends CardTestPlayerBase {
|
|||
assertManaOptions("{W}{B}{B}{B}", manaOptions);
|
||||
assertManaOptions("{B}{B}{B}{B}", manaOptions);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void TestMorselhoarder() {
|
||||
setStrictChooseMode(true);
|
||||
// Morselhoarder enters the battlefield with two -1/-1 counters on it.
|
||||
// Remove a -1/-1 counter from Morselhoarder: Add one mana of any color.
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Morselhoarder", 2);
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Swamp", 2);
|
||||
|
||||
setStopAt(1, PhaseStep.BEGIN_COMBAT);
|
||||
execute();
|
||||
|
||||
assertAllCommandsUsed();
|
||||
|
||||
ManaOptions manaOptions = playerA.getAvailableManaTest(currentGame);
|
||||
Assert.assertEquals("mana variations don't fit", 1, manaOptions.size());
|
||||
assertManaOptions("{B}{B}{Any}{Any}{Any}{Any}", manaOptions);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue