mirror of
https://github.com/correl/mage.git
synced 2024-12-24 03:00:14 +00:00
Failing test for Soul Warden
This commit is contained in:
parent
a2301a1f66
commit
5f3c38af69
1 changed files with 38 additions and 0 deletions
|
@ -0,0 +1,38 @@
|
|||
package org.mage.test.cards.triggers;
|
||||
|
||||
import mage.Constants;
|
||||
import org.junit.Test;
|
||||
import org.mage.test.serverside.base.CardTestPlayerBase;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author noxx
|
||||
*
|
||||
* Soul Warden:
|
||||
* Whenever another creature enters the battlefield, you gain 1 life.
|
||||
*/
|
||||
public class SoulWardenTest extends CardTestPlayerBase {
|
||||
|
||||
/**
|
||||
* Tests trigger won't happen after Soul Warden died
|
||||
*/
|
||||
@Test
|
||||
public void testDisabledEffectOnChangeZone() {
|
||||
addCard(Constants.Zone.BATTLEFIELD, playerA, "Mountain", 1);
|
||||
addCard(Constants.Zone.HAND, playerA, "Lightning Bolt");
|
||||
addCard(Constants.Zone.BATTLEFIELD, playerA, "Plains", 2);
|
||||
addCard(Constants.Zone.HAND, playerA, "Elite Vanguard", 2);
|
||||
addCard(Constants.Zone.BATTLEFIELD, playerA, "Soul Warden", 1);
|
||||
|
||||
castSpell(1, Constants.PhaseStep.PRECOMBAT_MAIN, playerA, "Elite Vanguard");
|
||||
castSpell(1, Constants.PhaseStep.POSTCOMBAT_MAIN, playerA, "Lightning Bolt", "Soul Warden");
|
||||
castSpell(1, Constants.PhaseStep.POSTCOMBAT_MAIN, playerA, "Elite Vanguard");
|
||||
|
||||
setStopAt(1, Constants.PhaseStep.END_TURN);
|
||||
execute();
|
||||
|
||||
assertLife(playerA, 21);
|
||||
assertLife(playerB, 20);
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in a new issue