Correct handling protection abilities for dealing damage. All tests passed.

This commit is contained in:
magenoxx 2012-06-04 11:25:32 +04:00
parent 17c88290af
commit 365bd2a50e
2 changed files with 41 additions and 2 deletions

View file

@ -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);
}
}