forked from External/mage
48 lines
1.5 KiB
Java
48 lines
1.5 KiB
Java
|
|
package mage.cards.p;
|
|
|
|
import java.util.UUID;
|
|
import mage.MageInt;
|
|
import mage.abilities.common.BeginningOfUpkeepTriggeredAbility;
|
|
import mage.abilities.costs.mana.ManaCostsImpl;
|
|
import mage.abilities.effects.common.SacrificeSourceUnlessPaysEffect;
|
|
import mage.abilities.keyword.FlyingAbility;
|
|
import mage.abilities.keyword.TrampleAbility;
|
|
import mage.cards.CardImpl;
|
|
import mage.cards.CardSetInfo;
|
|
import mage.constants.CardType;
|
|
import mage.constants.SubType;
|
|
import mage.constants.SuperType;
|
|
import mage.constants.TargetController;
|
|
|
|
/**
|
|
*
|
|
* @author LoneFox
|
|
*/
|
|
public final class PalladiaMors extends CardImpl {
|
|
|
|
public PalladiaMors(UUID ownerId, CardSetInfo setInfo) {
|
|
super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{2}{R}{R}{G}{G}{W}{W}");
|
|
addSuperType(SuperType.LEGENDARY);
|
|
this.subtype.add(SubType.ELDER);
|
|
this.subtype.add(SubType.DRAGON);
|
|
this.power = new MageInt(7);
|
|
this.toughness = new MageInt(7);
|
|
|
|
// Flying
|
|
this.addAbility(FlyingAbility.getInstance());
|
|
// Trample
|
|
this.addAbility(TrampleAbility.getInstance());
|
|
// At the beginning of your upkeep, sacrifice Palladia-Mors unless you pay {R}{G}{W}.
|
|
this.addAbility(new BeginningOfUpkeepTriggeredAbility(new SacrificeSourceUnlessPaysEffect(new ManaCostsImpl("{R}{G}{W}")), TargetController.YOU, false));
|
|
}
|
|
|
|
private PalladiaMors(final PalladiaMors card) {
|
|
super(card);
|
|
}
|
|
|
|
@Override
|
|
public PalladiaMors copy() {
|
|
return new PalladiaMors(this);
|
|
}
|
|
}
|