mirror of
https://github.com/magefree/mage.git
synced 2025-12-22 11:32:00 -08:00
[M21] fixed Hooded Blightfang triggered ability (fixes #7935)
This commit is contained in:
parent
9a4489b47f
commit
f27f59603c
2 changed files with 81 additions and 11 deletions
|
|
@ -7,13 +7,18 @@ import org.mage.test.serverside.base.CardTestPlayerBase;
|
|||
|
||||
public class HoodedBlightfangTest extends CardTestPlayerBase {
|
||||
|
||||
private static final String blightfang = "Hooded Blightfang";
|
||||
private static final String goblin = "Raging Goblin";
|
||||
private static final String bow = "Bow of Nylea";
|
||||
private static final String jace = "Jace Beleren";
|
||||
|
||||
@Test
|
||||
public void testBowOfNylea() {
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Hooded Blightfang");
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Raging Goblin");
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Bow of Nylea");
|
||||
addCard(Zone.BATTLEFIELD, playerA, blightfang);
|
||||
addCard(Zone.BATTLEFIELD, playerA, goblin);
|
||||
addCard(Zone.BATTLEFIELD, playerA, bow);
|
||||
|
||||
attack(1, playerA, "Raging Goblin");
|
||||
attack(1, playerA, goblin);
|
||||
setStopAt(2, PhaseStep.END_TURN);
|
||||
execute();
|
||||
assertAllCommandsUsed();
|
||||
|
|
@ -21,4 +26,20 @@ public class HoodedBlightfangTest extends CardTestPlayerBase {
|
|||
assertLife(playerA, 20 + 1);
|
||||
assertLife(playerB, 20 - 1 - 1);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testDeathtouchPlaneswalker() {
|
||||
addCard(Zone.BATTLEFIELD, playerA, blightfang);
|
||||
addCard(Zone.BATTLEFIELD, playerA, goblin);
|
||||
addCard(Zone.BATTLEFIELD, playerA, bow);
|
||||
addCard(Zone.BATTLEFIELD, playerB, jace);
|
||||
|
||||
attack(1, playerA, goblin, jace);
|
||||
setStopAt(2, PhaseStep.END_TURN);
|
||||
execute();
|
||||
assertAllCommandsUsed();
|
||||
|
||||
assertPermanentCount(playerB, jace, 0);
|
||||
assertGraveyardCount(playerB, jace, 1);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue