mirror of
https://github.com/magefree/mage.git
synced 2026-01-10 04:42:07 -08:00
Merge pull request #6041 from ssouders412/MustBeBlockedFix
Irresistible Prey "must be blocked" fix
This commit is contained in:
commit
22fbe57d84
7 changed files with 41 additions and 13 deletions
|
|
@ -542,4 +542,31 @@ public class AttackBlockRestrictionsTest extends CardTestPlayerBase {
|
|||
assertLife(playerA, 20);
|
||||
assertLife(playerB, 20);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void irresistiblePreyMustBeBlockedTest() {
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Llanowar Elves");
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Alpha Myr");
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Forest");
|
||||
addCard(Zone.HAND, playerA, "Irresistible Prey");
|
||||
|
||||
addCard(Zone.BATTLEFIELD, playerB, "Bronze Sable");
|
||||
|
||||
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Irresistible Prey", "Llanowar Elves"); // must be blocked
|
||||
|
||||
attack(1, playerA, "Llanowar Elves");
|
||||
attack(1, playerA, "Alpha Myr");
|
||||
|
||||
// attempt to block the creature that doesn't have "must be blocked"
|
||||
block(1, playerB, "Bronze Sable", "Alpha Myr");
|
||||
|
||||
setStopAt(1, PhaseStep.POSTCOMBAT_MAIN);
|
||||
execute();
|
||||
|
||||
assertGraveyardCount(playerA, "Irresistible Prey", 1);
|
||||
assertGraveyardCount(playerA, "Llanowar Elves", 1);
|
||||
assertGraveyardCount(playerB, "Bronze Sable", 1);
|
||||
assertTapped("Alpha Myr", true);
|
||||
assertLife(playerB, 18);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue