mirror of
https://github.com/magefree/mage.git
synced 2026-01-10 21:02:08 -08:00
[AVR] Necrobite + Regenerate effect test
This commit is contained in:
parent
ce85896c87
commit
9e45c0a911
2 changed files with 111 additions and 0 deletions
|
|
@ -0,0 +1,43 @@
|
|||
package org.mage.test.cards.abilities.oneshot.regenerate;
|
||||
|
||||
import mage.Constants;
|
||||
import mage.game.permanent.Permanent;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Test;
|
||||
import org.mage.test.serverside.base.CardTestPlayerBase;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author noxx
|
||||
*/
|
||||
public class NecrobiteRegenerateTest extends CardTestPlayerBase {
|
||||
|
||||
@Test
|
||||
public void testRegenerateAndDeathtouch() {
|
||||
addCard(Constants.Zone.BATTLEFIELD, playerA, "Craw Wurm");
|
||||
|
||||
addCard(Constants.Zone.BATTLEFIELD, playerB, "Elite Vanguard");
|
||||
addCard(Constants.Zone.BATTLEFIELD, playerB, "Swamp", 3);
|
||||
addCard(Constants.Zone.HAND, playerB, "Necrobite");
|
||||
|
||||
attack(2, playerB, "Elite Vanguard");
|
||||
block(2, playerA, "Craw Wurm", "Elite Vanguard");
|
||||
castSpell(2, Constants.PhaseStep.DECLARE_BLOCKERS, playerB, "Necrobite", "Elite Vanguard");
|
||||
|
||||
setStopAt(2, Constants.PhaseStep.POSTCOMBAT_MAIN);
|
||||
execute();
|
||||
|
||||
assertLife(playerA, 20);
|
||||
assertLife(playerB, 20);
|
||||
|
||||
// blocker dies because of deathtouch
|
||||
assertPermanentCount(playerA, "Craw Wurm", 0);
|
||||
assertGraveyardCount(playerA, "Craw Wurm", 1);
|
||||
|
||||
Permanent eliteVanguard = getPermanent("Elite Vanguard", playerB.getId());
|
||||
Assert.assertNotNull(eliteVanguard);
|
||||
|
||||
// regenerate causes to tap
|
||||
Assert.assertTrue(eliteVanguard.isTapped());
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue