fix and test for triumph of the hordes

This commit is contained in:
igoudt 2017-05-03 11:02:23 +02:00
parent 9da97f9368
commit 566966bf6b
2 changed files with 37 additions and 7 deletions

View file

@ -0,0 +1,27 @@
package org.mage.test.cards.single;
import mage.abilities.keyword.InfectAbility;
import mage.constants.PhaseStep;
import mage.constants.Zone;
import org.junit.Test;
import org.mage.test.serverside.base.CardTestPlayerBase;
public class TriumphOfTheHordesTest extends CardTestPlayerBase {
//issue 3292, Triumph of the Hordes gives a Chromatic Lantern Infect + Trample
@Test
public void triumphOfTheHordesNonCreatureTest() {
addCard(Zone.BATTLEFIELD, playerA, "Forest", 10);
addCard(Zone.BATTLEFIELD, playerA, "Chromatic Lantern", 1);
addCard(Zone.HAND, playerA, "Triumph of the Hordes", 1);
addCard(Zone.BATTLEFIELD, playerA, "Grizzly Bears", 1);
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Triumph of the Hordes");
setStopAt(1, PhaseStep.POSTCOMBAT_MAIN);
execute();
assertAbility(playerA, "Chromatic Lantern", InfectAbility.getInstance(), false);
assertAbility(playerA, "Grizzly Bears", InfectAbility.getInstance(), true);
}
}