@Override public CantAttackYouOrPlaneswalkerAllEffect copy() { return new CantAttackYouOrPlaneswalkerAllEffect(this); } }
public RiteOfTheRagingStorm(UUID ownerId, CardSetInfo setInfo) { super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{3}{R}{R}"); // Creatures named Lightning Rager can't attack you or planeswalkers you control. Effect effect = new CantAttackYouOrPlaneswalkerAllEffect(Duration.WhileOnBattlefield, filter); effect.setText("Creatures named Lightning Rager can't attack you or planeswalkers you control"); this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, effect)); // At the beginning of each player's upkeep, that player creates a 5/1 red Elemental creature token named Lightning Rager. // It has trample, haste, and "At the beginning of the end step, sacrifice this creature." this.addAbility(new BeginningOfUpkeepTriggeredAbility(Zone.BATTLEFIELD, new RiteOfTheRagingStormEffect(), TargetController.ANY, false)); }
public SandwurmConvergence(UUID ownerId, CardSetInfo setInfo) { super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{6}{G}{G}"); // Creatures with flying can't attack you or planeswalkers you control. Effect effect = new CantAttackYouOrPlaneswalkerAllEffect(Duration.WhileOnBattlefield, filter); effect.setText("Creatures with flying can't attack you or planeswalkers you control"); this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, effect)); // At the beginning of your end step, create a 5/5 green Wurm creature token. this.addAbility(new BeginningOfEndStepTriggeredAbility(new CreateTokenEffect(new WurmToken3()), TargetController.YOU, false)); }
public VarchildBetrayerOfKjeldor(UUID ownerId, CardSetInfo setInfo) { super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{2}{R}"); this.addSuperType(SuperType.LEGENDARY); this.subtype.add(SubType.HUMAN); this.subtype.add(SubType.KNIGHT); this.power = new MageInt(3); this.toughness = new MageInt(3); // Whenever Varchild, Betrayer of Kjeldor deals combat damage to a player, that player creates that many 1/1 red Survivor creature tokens. this.addAbility(new DealsCombatDamageToAPlayerTriggeredAbility( new VarchildBetrayerOfKjeldorEffect(), false, true )); // Survivors your opponents control can't block, and they can't attack you or a planeswalker you control. Ability ability = new SimpleStaticAbility( Zone.BATTLEFIELD, new CantBlockAllEffect( filter1, Duration.WhileOnBattlefield ) ); ability.addEffect(new CantAttackYouOrPlaneswalkerAllEffect( Duration.WhileOnBattlefield, filter1 ).setText("and can't attack you or a planeswalker you control")); this.addAbility(ability); // When Varchild leaves the battlefield, gain control of all Survivors. this.addAbility(new LeavesBattlefieldTriggeredAbility( new GainControlAllEffect(Duration.Custom, filter2), false )); }