Fixed Issue#67: Evernight Shade doesn't loose +1/+1 effects

This commit is contained in:
magenoxx 2012-09-07 20:05:03 +04:00
parent 88f990ec67
commit 3b3d02b3f8
7 changed files with 60 additions and 11 deletions

View file

@ -0,0 +1,32 @@
package org.mage.test.cards.continuous;
import mage.Constants;
import org.junit.Test;
import org.mage.test.serverside.base.CardTestPlayerBase;
/**
* @author magenoxx_at_gmail.com
*/
public class EvernightShadeTest extends CardTestPlayerBase {
/**
* Tests boost disappeared after creature died
*/
@Test
public void testBoostWithUndying() {
addCard(Constants.Zone.BATTLEFIELD, playerA, "Swamp", 3);
addCard(Constants.Zone.BATTLEFIELD, playerA, "Mountain", 1);
addCard(Constants.Zone.BATTLEFIELD, playerA, "Evernight Shade");
addCard(Constants.Zone.HAND, playerA, "Lightning Bolt");
activateAbility(1, Constants.PhaseStep.PRECOMBAT_MAIN, playerA, "{B}");
activateAbility(1, Constants.PhaseStep.PRECOMBAT_MAIN, playerA, "{B}");
castSpell(1, Constants.PhaseStep.POSTCOMBAT_MAIN, playerA, "Lightning Bolt", "Evernight Shade");
setStopAt(1, Constants.PhaseStep.END_TURN);
execute();
assertPowerToughness(playerA, "Evernight Shade", 2, 2);
}
}