public NightfallPredator(UUID ownerId) { super(ownerId, 176, "Nightfall Predator", Rarity.RARE, new CardType[] {CardType.CREATURE}, ""); this.expansionSetCode = "ISD"; this.subtype.add("Werewolf"); this.color.setGreen(true); this.power = new MageInt(4); this.toughness = new MageInt(4); // this card is the second face of double-faced card this.nightCard = true; this.canTransform = true; // {R}, {tap}: Nightfall Predator fights target creature. Ability activatedAbility = new SimpleActivatedAbility( Zone.BATTLEFIELD, new NightfallPredatorEffect(), new ManaCostsImpl("{R}")); activatedAbility.addCost(new TapSourceCost()); activatedAbility.addTarget(new TargetCreaturePermanent()); this.addAbility(activatedAbility); // At the beginning of each upkeep, if a player cast two or more spells last turn, transform // Nightfall Predator. TriggeredAbility ability = new BeginningOfUpkeepTriggeredAbility( new TransformSourceEffect(false), TargetController.ANY, false); this.addAbility( new ConditionalTriggeredAbility( ability, TwoOrMoreSpellsWereCastLastTurnCondition.getInstance(), TransformAbility.TWO_OR_MORE_SPELLS_TRANSFORM_RULE)); }
public HowlpackOfEstwald(UUID ownerId, CardSetInfo setInfo) { super(ownerId, setInfo, new CardType[] {CardType.CREATURE}, ""); this.subtype.add("Werewolf"); this.color.setGreen(true); // this card is the second face of double-faced card this.nightCard = true; this.transformable = true; this.power = new MageInt(4); this.toughness = new MageInt(6); // At the beginning of each upkeep, if a player cast two or more spells last turn, transform // Howlpack of Estwald. TriggeredAbility ability = new BeginningOfUpkeepTriggeredAbility( new TransformSourceEffect(false), TargetController.ANY, false); this.addAbility( new ConditionalTriggeredAbility( ability, TwoOrMoreSpellsWereCastLastTurnCondition.getInstance(), TransformAbility.TWO_OR_MORE_SPELLS_TRANSFORM_RULE)); }