Fixed ItThatBetrays and Barrin, Master Wizard broken effects, added new test for Emrakul's annihilator trigger

This commit is contained in:
Radoslaw Sypen 2018-01-12 10:33:11 +01:00
parent b353a25f57
commit 88527987cc
7 changed files with 46 additions and 7 deletions

View file

@ -0,0 +1,35 @@
package org.mage.test.cards.abilities.keywords;
import mage.constants.PhaseStep;
import mage.constants.Zone;
import org.junit.Test;
import org.mage.test.serverside.base.CardTestPlayerBase;
public class AnnihilatorTest extends CardTestPlayerBase {
@Test
public void testCardsSacrificedToAnnihilatorTrigger() {
addCard(Zone.BATTLEFIELD, playerA, "Island", 3);
addCard(Zone.BATTLEFIELD, playerA, "Mountain", 3);
addCard(Zone.BATTLEFIELD, playerA, "Silvercoat Lion", 1);
// Annihilator 6 (Whenever this creature attacks, defending player sacrifices two permanents.)
addCard(Zone.BATTLEFIELD, playerB, "Emrakul, the Aeons Torn");
attack(2, playerB, "Emrakul, the Aeons Torn");
setChoice(playerA, "Island");
setChoice(playerA, "Island");
setChoice(playerA, "Island");
setChoice(playerA, "Mountain");
setChoice(playerA, "Mountain");
setChoice(playerA, "Mountain");
setStopAt(2, PhaseStep.POSTCOMBAT_MAIN);
execute();
assertLife(playerA, 5);
assertPermanentCount(playerA, 1);
}
}