forked from External/mage
Added failing test that reproduces issue with source zone changing for triggered abilities
This commit is contained in:
parent
87c111a253
commit
cf2e3a4c6a
1 changed files with 38 additions and 0 deletions
|
|
@ -0,0 +1,38 @@
|
|||
package org.mage.test.cards.triggers.dies;
|
||||
|
||||
import mage.Constants;
|
||||
import org.junit.Test;
|
||||
import org.mage.test.serverside.base.CardTestPlayerBase;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author noxx
|
||||
*
|
||||
* Whenever Blood Artist or another creature dies, target player loses 1 life and you gain 1 life.
|
||||
*/
|
||||
public class BloodArtistTest extends CardTestPlayerBase {
|
||||
|
||||
/**
|
||||
* Tests that whenever Blood Artist goes to graveyard, it would trigget its ability.
|
||||
* Tests that after Blood Artist went to graveyard, his ability doesn't work anymore.
|
||||
*/
|
||||
@Test
|
||||
public void testDisabledEffectOnChangeZone() {
|
||||
addCard(Constants.Zone.BATTLEFIELD, playerA, "Mountain", 2);
|
||||
addCard(Constants.Zone.HAND, playerA, "Lightning Bolt", 2);
|
||||
addCard(Constants.Zone.BATTLEFIELD, playerA, "Blood Artist", 2);
|
||||
addCard(Constants.Zone.GRAVEYARD, playerA, "Blood Artist", 1);
|
||||
|
||||
addCard(Constants.Zone.BATTLEFIELD, playerB, "Bloodflow Connoisseur", 1);
|
||||
|
||||
castSpell(1, Constants.PhaseStep.PRECOMBAT_MAIN, playerA, "Lightning Bolt", "Blood Artist");
|
||||
castSpell(1, Constants.PhaseStep.PRECOMBAT_MAIN, playerA, "Lightning Bolt", "Bloodflow Connoisseur");
|
||||
|
||||
setStopAt(1, Constants.PhaseStep.BEGIN_COMBAT);
|
||||
execute();
|
||||
|
||||
assertLife(playerA, 23);
|
||||
assertLife(playerB, 17);
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue