forked from External/mage
49 lines
1.6 KiB
Java
49 lines
1.6 KiB
Java
package mage.cards.d;
|
|
|
|
import mage.abilities.common.EntersBattlefieldAbility;
|
|
import mage.abilities.condition.Condition;
|
|
import mage.abilities.condition.common.PermanentsOnTheBattlefieldCondition;
|
|
import mage.abilities.decorator.ConditionalOneShotEffect;
|
|
import mage.abilities.effects.common.TapSourceEffect;
|
|
import mage.abilities.mana.BlueManaAbility;
|
|
import mage.abilities.mana.WhiteManaAbility;
|
|
import mage.cards.CardImpl;
|
|
import mage.cards.CardSetInfo;
|
|
import mage.constants.CardType;
|
|
import mage.constants.ComparisonType;
|
|
import mage.filter.StaticFilters;
|
|
|
|
import java.util.UUID;
|
|
|
|
/**
|
|
* @author TheElk801
|
|
*/
|
|
public final class DesertedBeach extends CardImpl {
|
|
|
|
private static final Condition condition = new PermanentsOnTheBattlefieldCondition(
|
|
StaticFilters.FILTER_LANDS, ComparisonType.FEWER_THAN, 2
|
|
);
|
|
|
|
public DesertedBeach(UUID ownerId, CardSetInfo setInfo) {
|
|
super(ownerId, setInfo, new CardType[]{CardType.LAND}, "");
|
|
|
|
// Deserted Beach enters the battlefield tapped unless you control two or more other lands.
|
|
this.addAbility(new EntersBattlefieldAbility(
|
|
new ConditionalOneShotEffect(new TapSourceEffect(), condition),
|
|
"tapped unless you control two or more other lands"
|
|
));
|
|
|
|
// {T}: Add {W} or {U}.
|
|
this.addAbility(new WhiteManaAbility());
|
|
this.addAbility(new BlueManaAbility());
|
|
}
|
|
|
|
private DesertedBeach(final DesertedBeach card) {
|
|
super(card);
|
|
}
|
|
|
|
@Override
|
|
public DesertedBeach copy() {
|
|
return new DesertedBeach(this);
|
|
}
|
|
}
|