fix Cascade, add test for it (test currently broken)

This commit is contained in:
Loki 2012-05-28 21:12:48 +03:00
parent 51ff877f8d
commit 263b515216
3 changed files with 28 additions and 24 deletions

View file

@ -1,23 +0,0 @@
package org
import mage.Constants
import mage.game.match.MatchOptions
import mage.game.tournament.LimitedOptions
import mage.view.SeatView
import java.util.ArrayList
import java.util.Date
import java.util.List
import java.util.UUID
/**
* Created by IntelliJ IDEA.
* User: ayratn
* Date: 5/27/12
* Time: 8:44 AM
* To change this template use File | Settings | File Templates.
*/
public interface Test {
}

View file

@ -0,0 +1,27 @@
package org.mage.test.cards.triggers;
import mage.Constants;
import org.junit.Test;
import org.mage.test.serverside.base.CardTestPlayerBase;
public class BloodbraidElfTest extends CardTestPlayerBase {
@Test
public void testCascade() {
addCard(Constants.Zone.HAND, playerA, "Bloodbraid Elf");
addCard(Constants.Zone.HAND, playerA, "Unsummon");
addCard(Constants.Zone.BATTLEFIELD, playerA, "Goblin Wardriver", 1);
addCard(Constants.Zone.BATTLEFIELD, playerA, "Mountain", 2);
addCard(Constants.Zone.BATTLEFIELD, playerA, "Forest", 2);
addCard(Constants.Zone.BATTLEFIELD, playerA, "Island", 1);
castSpell(1, Constants.PhaseStep.PRECOMBAT_MAIN, playerA, "Unsummon", "Goblin Wardriver");
castSpell(1, Constants.PhaseStep.POSTCOMBAT_MAIN, playerA, "Bloodbraid Elf");
setStopAt(1, Constants.PhaseStep.END_TURN);
execute();
assertPermanentCount(playerA, "Bloodbraid Elf", 1);
assertPermanentCount(playerA, "Goblin Wardriver", 1);
}
}