mirror of
https://github.com/magefree/mage.git
synced 2026-01-10 21:02:08 -08:00
Correct handling protection abilities for dealing damage. All tests passed.
This commit is contained in:
parent
17c88290af
commit
365bd2a50e
2 changed files with 41 additions and 2 deletions
|
|
@ -41,4 +41,26 @@ public class MalignusNoPreventDamageTest extends CardTestPlayerBase {
|
|||
assertPermanentCount(playerA, "Vedalken Outlander", 0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Tests that blocking red creature by creature by pro red will prevent damage
|
||||
*/
|
||||
@Test
|
||||
public void testBlockAnotherWithProRed() {
|
||||
addCard(Constants.Zone.BATTLEFIELD, playerA, "Vedalken Outlander");
|
||||
|
||||
addCard(Constants.Zone.BATTLEFIELD, playerB, "Ogre Resister");
|
||||
|
||||
attack(2, playerB, "Ogre Resister");
|
||||
block(2, playerA, "Vedalken Outlander", "Ogre Resister");
|
||||
|
||||
setStopAt(2, Constants.PhaseStep.END_TURN);
|
||||
execute();
|
||||
|
||||
assertLife(playerA, 20);
|
||||
assertLife(playerB, 20);
|
||||
|
||||
assertPermanentCount(playerB, "Ogre Resister", 1);
|
||||
assertPermanentCount(playerA, "Vedalken Outlander", 1);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue