mirror of
https://github.com/magefree/mage.git
synced 2025-12-30 15:32:08 -08:00
Controlled spells gain ability -- fixed that gained cost modification effects doesn't allow to cast cards without mana (example: Inspiring Statuary, see #6698);
This commit is contained in:
parent
ad2d01b46f
commit
4168e2714a
9 changed files with 74 additions and 35 deletions
|
|
@ -10,6 +10,8 @@ import org.mage.test.serverside.base.CardTestPlayerBaseWithAIHelps;
|
|||
*/
|
||||
public class CostReduceForEachTest extends CardTestPlayerBaseWithAIHelps {
|
||||
|
||||
// tests for https://github.com/magefree/mage/issues/6698
|
||||
|
||||
@Test
|
||||
public void test_AncientStoneIdol_Attacking() {
|
||||
// {10}
|
||||
|
|
@ -244,4 +246,26 @@ public class CostReduceForEachTest extends CardTestPlayerBaseWithAIHelps {
|
|||
|
||||
assertPermanentCount(playerA, "Balduvian Bears", 1);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void test_InspiringStatuary_PayByArtifacts() {
|
||||
// {3}
|
||||
// Nonartifact spells you cast have improvise. (Your artifacts can help cast those spells. Each artifact you
|
||||
// tap after you’re done activating mana abilities pays for {1}.)
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Inspiring Statuary", 5);
|
||||
//
|
||||
addCard(Zone.HAND, playerA, "Keeper of Tresserhorn", 1); // {5}{B}
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Swamp", 6 - 5); // 5 mana from artifact
|
||||
|
||||
checkPlayableAbility("can play", 1, PhaseStep.PRECOMBAT_MAIN, playerA, "Cast Keeper of Tresserhorn", true);
|
||||
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Keeper of Tresserhorn");
|
||||
addTarget(playerA, "Inspiring Statuary", 5); // as pay
|
||||
|
||||
setStrictChooseMode(true);
|
||||
setStopAt(1, PhaseStep.END_TURN);
|
||||
execute();
|
||||
assertAllCommandsUsed();
|
||||
|
||||
assertPermanentCount(playerA, "Keeper of Tresserhorn", 1);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue