mirror of
https://github.com/correl/mage.git
synced 2024-11-15 03:00:16 +00:00
Merge pull request #3418 from drmDev/master
Soul conduit UT unable to confirm issue #3414
This commit is contained in:
commit
0e38847c09
1 changed files with 54 additions and 0 deletions
|
@ -0,0 +1,54 @@
|
|||
package org.mage.test.cards.abilities.other;
|
||||
|
||||
import mage.constants.PhaseStep;
|
||||
import mage.constants.Zone;
|
||||
import mage.counters.CounterType;
|
||||
import org.junit.Test;
|
||||
import org.mage.test.serverside.base.CardTestPlayerBase;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author escplan9
|
||||
*/
|
||||
public class SoulConduitTest extends CardTestPlayerBase {
|
||||
|
||||
/*
|
||||
Soul Conduit {6}
|
||||
Artifact
|
||||
{6}, {T}: Two target players exchange life totals.
|
||||
*/
|
||||
private final String soulConduit = "Soul Conduit";
|
||||
|
||||
/*
|
||||
* Reported bug issue #3414: Soul Conduit effect does not do anything to the life totals.
|
||||
*/
|
||||
@Test
|
||||
public void basicTwoPlayerGame_SoulConduitEffect() {
|
||||
|
||||
/*
|
||||
Live Fast {2}{B}
|
||||
Sorcery
|
||||
You draw two cards, lose 2 life, and get two energy counters.
|
||||
*/
|
||||
String liveFast = "Live Fast";
|
||||
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Swamp", 9);
|
||||
addCard(Zone.BATTLEFIELD, playerA, soulConduit);
|
||||
addCard(Zone.HAND, playerA, liveFast);
|
||||
|
||||
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, liveFast); // to force losing two life
|
||||
activateAbility(1, PhaseStep.BEGIN_COMBAT, playerA, "{6}");
|
||||
addTarget(playerA, playerA);
|
||||
addTarget(playerA, playerB);
|
||||
|
||||
setStopAt(1, PhaseStep.END_COMBAT);
|
||||
execute();
|
||||
|
||||
assertGraveyardCount(playerA, liveFast, 1);
|
||||
assertCounterCount(playerA, CounterType.ENERGY, 2); // from Live Fast
|
||||
assertCounterCount(playerB, CounterType.ENERGY, 0);
|
||||
assertTapped(soulConduit, true);
|
||||
assertLife(playerA, 20);
|
||||
assertLife(playerB, 18);
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue