mirror of
https://github.com/magefree/mage.git
synced 2025-12-23 20:11:59 -08:00
Fixed combat information not being preserved in LKI and added unit test
This commit is contained in:
parent
5e67314c96
commit
27d4fb13c3
4 changed files with 49 additions and 4 deletions
|
|
@ -0,0 +1,45 @@
|
|||
package org.mage.test.cards.single.afc;
|
||||
|
||||
import mage.constants.PhaseStep;
|
||||
import mage.constants.Zone;
|
||||
import org.junit.Test;
|
||||
import org.mage.test.serverside.base.CardTestPlayerBase;
|
||||
|
||||
public class DeathTyrantTest extends CardTestPlayerBase {
|
||||
|
||||
@Test
|
||||
public void attackerDies() {
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Death Tyrant", 1);
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Grizzly Bears", 1);
|
||||
addCard(Zone.BATTLEFIELD, playerB, "Hill Giant", 1);
|
||||
|
||||
attack(1, playerA, "Grizzly Bears");
|
||||
block(1, playerB, "Hill Giant", "Grizzly Bears");
|
||||
|
||||
setStopAt(1, PhaseStep.POSTCOMBAT_MAIN);
|
||||
execute();
|
||||
|
||||
assertGraveyardCount(playerA, "Grizzly Bears", 1);
|
||||
assertPermanentCount(playerA, "Zombie", 1);
|
||||
assertPermanentCount(playerA, "Death Tyrant", 1);
|
||||
assertPermanentCount(playerB, "Hill Giant", 1);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void blockerDies() {
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Death Tyrant", 1);
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Hill Giant", 1);
|
||||
addCard(Zone.BATTLEFIELD, playerB, "Grizzly Bears", 1);
|
||||
|
||||
attack(1, playerA, "Hill Giant");
|
||||
block(1, playerB, "Grizzly Bears", "Hill Giant");
|
||||
|
||||
setStopAt(1, PhaseStep.POSTCOMBAT_MAIN);
|
||||
execute();
|
||||
|
||||
assertGraveyardCount(playerB, "Grizzly Bears", 1);
|
||||
assertPermanentCount(playerA, "Zombie", 1);
|
||||
assertPermanentCount(playerA, "Death Tyrant", 1);
|
||||
assertPermanentCount(playerA, "Hill Giant", 1);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue