@Override public CanAttackAsThoughItDidntHaveDefenderAllEffect copy() { return new CanAttackAsThoughItDidntHaveDefenderAllEffect(this); }
public RollingStones(UUID ownerId, CardSetInfo setInfo) { super(ownerId,setInfo,new CardType[]{CardType.ENCHANTMENT},"{1}{W}"); // Wall creatures can attack as though they didn't have defender. this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new CanAttackAsThoughItDidntHaveDefenderAllEffect(Duration.WhileOnBattlefield, filter))); }
public WakestoneGargoyle(UUID ownerId, CardSetInfo setInfo) { super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{3}{W}"); this.subtype.add(SubType.GARGOYLE); this.power = new MageInt(3); this.toughness = new MageInt(4); // Defender this.addAbility(DefenderAbility.getInstance()); // Flying this.addAbility(FlyingAbility.getInstance()); // {1}{W}: Creatures you control with defender can attack this turn as though they didn't have defender. this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new CanAttackAsThoughItDidntHaveDefenderAllEffect(Duration.EndOfTurn, filter), new ManaCostsImpl("{1}{W}") )); }
public HighAlert(UUID ownerId, CardSetInfo setInfo) { super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{1}{W}{U}"); // Each creature you control assigns combat damage equal to its toughness rather than its power. this.addAbility(new SimpleStaticAbility( Zone.BATTLEFIELD, new CombatDamageByToughnessEffect( StaticFilters.FILTER_PERMANENT_CREATURE, true ) )); // Creatures you control can attack as though they didn't have defender. this.addAbility(new SimpleStaticAbility( Zone.BATTLEFIELD, new CanAttackAsThoughItDidntHaveDefenderAllEffect( Duration.WhileOnBattlefield, StaticFilters.FILTER_CONTROLLED_CREATURES ) )); // {2}{W}{U}: Untap target creature. Ability ability = new SimpleActivatedAbility(new UntapTargetEffect(), new ManaCostsImpl("{2}{W}{U}")); ability.addTarget(new TargetCreaturePermanent()); this.addAbility(ability); }
public ArcadesTheStrategist(UUID ownerId, CardSetInfo setInfo) { super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{G}{W}{U}"); this.addSuperType(SuperType.LEGENDARY); this.subtype.add(SubType.ELDER); this.subtype.add(SubType.DRAGON); this.power = new MageInt(3); this.toughness = new MageInt(5); // Flying this.addAbility(FlyingAbility.getInstance()); // Vigilance this.addAbility(VigilanceAbility.getInstance()); // Whenever a creature with defender enters the battlefield under your control, draw a card. this.addAbility(new EntersBattlefieldControlledTriggeredAbility( new DrawCardSourceControllerEffect(1), filter )); // Each creature you control with defender assigns combat damage equal to its toughness rather than its power and can attack as though it didn't have defender. Ability ability = new SimpleStaticAbility(Zone.BATTLEFIELD, new CombatDamageByToughnessEffect(filter2, true).setText("Each creature you control with defender assigns combat damage equal to its toughness rather than its power")); ability.addEffect(new CanAttackAsThoughItDidntHaveDefenderAllEffect( Duration.WhileOnBattlefield, filter ).setText("and can attack as though it didn't have defender")); this.addAbility(ability); }