mirror of
https://github.com/correl/mage.git
synced 2024-11-15 03:00:16 +00:00
Razorverge Thicket should enter untapped only if you control two or less lands.
This commit is contained in:
parent
40d85ecbff
commit
d42e5fed78
2 changed files with 40 additions and 1 deletions
|
@ -54,7 +54,7 @@ public class RazorvergeThicket extends CardImpl {
|
|||
super(ownerId, 228, "Razorverge Thicket", Rarity.RARE, new CardType[]{CardType.LAND}, null);
|
||||
this.expansionSetCode = "SOM";
|
||||
|
||||
Condition controls = new InvertCondition(new PermanentsOnTheBattlefieldCondition(filter, PermanentsOnTheBattlefieldCondition.CountType.FEWER_THAN, 4));
|
||||
Condition controls = new InvertCondition(new PermanentsOnTheBattlefieldCondition(filter, PermanentsOnTheBattlefieldCondition.CountType.FEWER_THAN, 3));
|
||||
String abilityText = "tap it unless you control fewer than 3 lands";
|
||||
this.addAbility(new EntersBattlefieldAbility(new ConditionalOneShotEffect(new TapSourceEffect(), controls, abilityText), abilityText));
|
||||
this.addAbility(new GreenManaAbility());
|
||||
|
|
|
@ -0,0 +1,39 @@
|
|||
package org.mage.test.cards.conditional;
|
||||
|
||||
import mage.constants.PhaseStep;
|
||||
import mage.constants.Zone;
|
||||
import org.junit.Test;
|
||||
import org.mage.test.serverside.base.CardTestPlayerBase;
|
||||
|
||||
/**
|
||||
* @author tobz
|
||||
*/
|
||||
public class RazorvergeThicketTest extends CardTestPlayerBase {
|
||||
|
||||
@Test
|
||||
public void testEntersTappedForThreeLands() {
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Island", 3);
|
||||
addCard(Zone.HAND, playerA, "Razorverge Thicket");
|
||||
|
||||
playLand(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Razorverge Thicket");
|
||||
|
||||
setStopAt(1, PhaseStep.BEGIN_COMBAT);
|
||||
execute();
|
||||
|
||||
assertTapped("Razorverge Thicket", true);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testEntersUntappedForTwoLands() {
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Island", 2);
|
||||
addCard(Zone.HAND, playerA, "Razorverge Thicket");
|
||||
|
||||
playLand(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Razorverge Thicket");
|
||||
|
||||
setStopAt(1, PhaseStep.BEGIN_COMBAT);
|
||||
execute();
|
||||
|
||||
assertTapped("Razorverge Thicket", false);
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in a new issue