mirror of
https://github.com/magefree/mage.git
synced 2026-01-21 02:39:54 -08:00
* Harbor Serpent - Fixed that the attack restriction did not work correctly.
This commit is contained in:
parent
e717ad038b
commit
7ee6e13913
2 changed files with 32 additions and 8 deletions
|
|
@ -66,6 +66,31 @@ public class CantAttackTest extends CardTestPlayerBase {
|
|||
assertLife(playerB, 14); // 4 + 2
|
||||
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testAttackHarborSerpent() {
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Island", 2);
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Silvercoat Lion"); // 2/2
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Harbor Serpent"); // 5/5
|
||||
addCard(Zone.HAND, playerA, "Island");
|
||||
|
||||
addCard(Zone.BATTLEFIELD, playerB, "Island", 2);
|
||||
addCard(Zone.BATTLEFIELD, playerB, "Silvercoat Lion"); // 2/2
|
||||
addCard(Zone.BATTLEFIELD, playerB, "Harbor Serpent"); // 5/5
|
||||
|
||||
attack(2, playerB, "Harbor Serpent");
|
||||
attack(2, playerB, "Silvercoat Lion");
|
||||
|
||||
playLand(3, PhaseStep.PRECOMBAT_MAIN, playerA, "Island");
|
||||
attack(3, playerA, "Harbor Serpent");
|
||||
attack(3, playerA, "Silvercoat Lion");
|
||||
|
||||
setStopAt(3, PhaseStep.POSTCOMBAT_MAIN);
|
||||
execute();
|
||||
|
||||
assertLife(playerB, 13);
|
||||
assertLife(playerA, 18);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue