mirror of
https://github.com/correl/mage.git
synced 2025-04-09 09:11:05 -09:00
Added converge test with artifact mana sources.
This commit is contained in:
parent
ae7620918e
commit
0044c9df78
3 changed files with 32 additions and 2 deletions
Mage.Sets/src/mage/cards
Mage.Tests/src/test/java/org/mage/test/cards/abilities/abilitywords
|
@ -45,7 +45,9 @@ import mage.constants.Zone;
|
|||
public class IzzetSignet extends CardImpl {
|
||||
|
||||
public IzzetSignet(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId,setInfo,new CardType[]{CardType.ARTIFACT},"{2}");
|
||||
super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{2}");
|
||||
|
||||
// {1}, {T}: Add {U}{R} to your mana pool.
|
||||
Ability ability = new SimpleManaAbility(Zone.BATTLEFIELD, new Mana(1, 0, 1, 0, 0, 0, 0, 0), new GenericManaCost(1));
|
||||
ability.addCost(new TapSourceCost());
|
||||
this.addAbility(ability);
|
||||
|
|
|
@ -45,7 +45,9 @@ import mage.constants.Zone;
|
|||
public class OrzhovSignet extends CardImpl {
|
||||
|
||||
public OrzhovSignet(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId,setInfo,new CardType[]{CardType.ARTIFACT},"{2}");
|
||||
super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{2}");
|
||||
|
||||
// {1}, {T}: Add {W}{B} to your mana pool.
|
||||
Ability ability = new SimpleManaAbility(Zone.BATTLEFIELD, new Mana(0, 0, 0, 1, 1, 0, 0, 0), new GenericManaCost(1));
|
||||
ability.addCost(new TapSourceCost());
|
||||
this.addAbility(ability);
|
||||
|
|
|
@ -86,4 +86,30 @@ public class ConvergeTest extends CardTestPlayerBase {
|
|||
assertGraveyardCount(playerB, "Silvercoat Lion", 1);
|
||||
}
|
||||
|
||||
// Painful Truths (maybe converge mechanic) is bugged with signets. I played the card with Izzet+Orzhov signets and ended up getting 0 cards and losing 0 life.
|
||||
@Test
|
||||
public void testWithArtifactManaSources() {
|
||||
// Converge - You draw X cards and lose X life, where X is the number of colors of mana spent to cast Painful Truths.
|
||||
addCard(Zone.HAND, playerA, "Painful Truths", 1); // {2}{B}
|
||||
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Mountain", 1);
|
||||
|
||||
// {1}, {T}: Add {U}{R} to your mana pool.
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Izzet Signet", 1);
|
||||
// {1}, {T}: Add {W}{B} to your mana pool.
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Orzhov Signet", 1);
|
||||
|
||||
activateManaAbility(1, PhaseStep.PRECOMBAT_MAIN, playerA, "{1}, {T}: Add {U}{R}");
|
||||
activateManaAbility(1, PhaseStep.PRECOMBAT_MAIN, playerA, "{1}, {T}: Add {W}{B}");
|
||||
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Painful Truths");
|
||||
|
||||
setStopAt(1, PhaseStep.BEGIN_COMBAT);
|
||||
execute();
|
||||
|
||||
assertTapped("Izzet Signet", true);
|
||||
assertTapped("Orzhov Signet", true);
|
||||
assertGraveyardCount(playerA, "Painful Truths", 1);
|
||||
assertLife(playerA, 17);
|
||||
assertHandCount(playerA, 3);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue