@Override public CantAttackAnyPlayerSourceEffect copy() { return new CantAttackAnyPlayerSourceEffect(this); }
public DeepSeaTerror(UUID ownerId, CardSetInfo setInfo) { super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{4}{U}{U}"); this.subtype.add(SubType.SERPENT); this.power = new MageInt(6); this.toughness = new MageInt(6); // Deep-Sea Terror can't attack unless there are seven or more cards in your graveyard. Effect effect = new ConditionalRestrictionEffect( new CantAttackAnyPlayerSourceEffect(Duration.WhileOnBattlefield), new InvertCondition(new CardsInControllerGraveCondition(7))); effect.setText("{this} can't attack unless there are seven or more cards in your graveyard"); this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, effect)); }
public MedomaiTheAgeless(UUID ownerId, CardSetInfo setInfo) { super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{4}{W}{U}"); addSuperType(SuperType.LEGENDARY); this.subtype.add(SubType.SPHINX); this.power = new MageInt(4); this.toughness = new MageInt(4); // Flying this.addAbility(FlyingAbility.getInstance()); // Whenever Medomai the Ageless deals combat damage to a player, take an extra turn after this one. this.addAbility(new DealsCombatDamageToAPlayerTriggeredAbility(new AddExtraTurnControllerEffect(), false)); // Medomai the Ageless can't attack during extra turns. Effect effect = new ConditionalRestrictionEffect(new CantAttackAnyPlayerSourceEffect(Duration.WhileOnBattlefield), ExtraTurnCondition.instance); effect.setText("{this} can't attack during extra turns"); this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, effect)); }