mirror of
https://github.com/magefree/mage.git
synced 2026-01-10 21:02:08 -08:00
* Added test.
This commit is contained in:
parent
2c52dcec73
commit
4b41628032
2 changed files with 31 additions and 5 deletions
|
|
@ -68,4 +68,26 @@ public class DrawTriggeredTest extends CardTestPlayerBase {
|
|||
|
||||
}
|
||||
|
||||
/**
|
||||
* Consecrated Sphinx does not trigger when "Edric, Spymaster of Trest" lets
|
||||
* my opponent draw cards.
|
||||
*/
|
||||
@Test
|
||||
public void EdricSpymasterOfTrestTest() {
|
||||
// Flying
|
||||
// Whenever an opponent draws a card, you may draw two cards.
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Consecrated Sphinx", 1);
|
||||
|
||||
// Whenever a creature deals combat damage to one of your opponents, its controller may draw a card.
|
||||
addCard(Zone.BATTLEFIELD, playerB, "Edric, Spymaster of Trest", 1);
|
||||
|
||||
attack(2, playerB, "Edric, Spymaster of Trest");
|
||||
|
||||
setStopAt(2, PhaseStep.POSTCOMBAT_MAIN);
|
||||
execute();
|
||||
|
||||
assertHandCount(playerB, 2); // 1 from start of turn and 1 from Edric
|
||||
assertHandCount(playerA, 4); // 2 * 2 from Sphinx = 4
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue