mirror of
https://github.com/correl/mage.git
synced 2025-03-07 20:53:18 -10:00
UT for Lambholt replicating bug in #3427
This commit is contained in:
parent
1643471693
commit
6e6d412535
2 changed files with 54 additions and 6 deletions
|
@ -0,0 +1,52 @@
|
|||
package org.mage.test.cards.single.soi;
|
||||
|
||||
import mage.constants.PhaseStep;
|
||||
import mage.constants.Zone;
|
||||
import org.junit.Test;
|
||||
import org.mage.test.serverside.base.CardTestPlayerBase;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author escplan9
|
||||
*/
|
||||
public class LambholtPacifistTest extends CardTestPlayerBase {
|
||||
|
||||
/*
|
||||
Lambholt Pacifist {1}{G}
|
||||
Creature - Human Shaman Werewolf 3/3
|
||||
Lambholt Pacifist can't attack unless you control a creature with power 4 or greater.
|
||||
At the beginning of each upkeep, if no spells were cast last turn, transform Lambholt Pacifist.
|
||||
*/
|
||||
private final String lambholt = "Lambholt Pacifist";
|
||||
|
||||
@Test
|
||||
public void uncrewedVehicle_LambholtCannotAttack() {
|
||||
|
||||
/*
|
||||
Heart of Kiran {2}
|
||||
Legendary Artifact - Vehicle
|
||||
Flying, vigilance
|
||||
Crew 3 (Tap any number of creatures you control with total power 3 or more: This Vehicle becomes an artifact creature until end of turn.)
|
||||
You may remove a loyalty counter from a planeswalker you control rather than pay Heart of Kiran's crew cost.
|
||||
*/
|
||||
String heartKiran = "Heart of Kiran";
|
||||
String orni = "Ornithopter"; // {0} 0/2 flyer - just needs something to cast to prevent lambholt transforming
|
||||
|
||||
addCard(Zone.HAND, playerA, lambholt);
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Forest", 2);
|
||||
addCard(Zone.BATTLEFIELD, playerA, heartKiran);
|
||||
addCard(Zone.HAND, playerB, orni);
|
||||
|
||||
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, lambholt);
|
||||
castSpell(2, PhaseStep.PRECOMBAT_MAIN, playerB, orni);
|
||||
|
||||
attack(3, playerA, lambholt);
|
||||
|
||||
setStopAt(3, PhaseStep.END_COMBAT);
|
||||
execute();
|
||||
|
||||
assertPermanentCount(playerB, orni, 1);
|
||||
assertTapped(lambholt, false);
|
||||
assertLife(playerB, 20);
|
||||
}
|
||||
}
|
|
@ -5,11 +5,10 @@ import mage.constants.Zone;
|
|||
import mage.counters.CounterType;
|
||||
import mage.game.permanent.Permanent;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Test;
|
||||
import org.mage.test.serverside.base.CardTestPlayerBase;
|
||||
|
||||
import static org.junit.Assert.assertEquals;
|
||||
import static org.junit.Assert.fail;
|
||||
import org.junit.Test;
|
||||
import org.mage.test.serverside.base.CardTestPlayerBase;
|
||||
|
||||
/**
|
||||
* Test restrictions for choosing attackers and blockers.
|
||||
|
@ -543,7 +542,4 @@ public class AttackBlockRestrictionsTest extends CardTestPlayerBase {
|
|||
assertLife(playerA, 20);
|
||||
assertLife(playerB, 20);
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue