@Override public DamageWithPowerTargetEffect copy() { return new DamageWithPowerTargetEffect(this); }
public Brawl(UUID ownerId, CardSetInfo setInfo) { super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{3}{R}{R}"); // Until end of turn, all creatures gain "{T}: This creature deals damage equal to its power to target creature." Ability ability = new SimpleActivatedAbility(new DamageWithPowerTargetEffect(), new TapSourceCost()); ability.addTarget(new TargetCreaturePermanent()); this.getSpellAbility().addEffect( new GainAbilityAllEffect(ability, Duration.EndOfTurn, new FilterCreaturePermanent()) .setText("Until end of turn, all creatures gain \"{T}: This creature deals damage equal to its power to target creature.\"") ); }
public AggressiveInstinct(UUID ownerId, CardSetInfo setInfo) { super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{1}{G}"); // Target creature you control deals damage equal to its power to target creature you don't control. this.getSpellAbility().addEffect(new DamageWithPowerTargetEffect()); this.getSpellAbility().addTarget(new TargetControlledCreaturePermanent()); this.getSpellAbility().addTarget(new TargetCreaturePermanent(filter)); }
public TailSlash(UUID ownerId, CardSetInfo setInfo) { super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{2}{R}"); // Target creature you control deals damage equal to its power to target creature you don't control. this.getSpellAbility().addTarget(new TargetControlledCreaturePermanent()); this.getSpellAbility().addTarget(new TargetCreaturePermanent(filter)); this.getSpellAbility().addEffect(new DamageWithPowerTargetEffect()); }
public RabidBite(UUID ownerId, CardSetInfo setInfo) { super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{1}{G}"); // Target creature you control deals damage equal to its power to target creature you don't control. this.getSpellAbility().addTarget(new TargetControlledCreaturePermanent()); this.getSpellAbility().addTarget(new TargetCreaturePermanent(filter)); this.getSpellAbility().addEffect(new DamageWithPowerTargetEffect()); }
public Ambuscade(UUID ownerId, CardSetInfo setInfo) { super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{2}{G}"); // Target creature you control gets +1/+0 until end of turn. Effect effect = new BoostTargetEffect(1, 0, Duration.EndOfTurn); this.getSpellAbility().addTarget(new TargetControlledCreaturePermanent()); this.getSpellAbility().addEffect(effect); // It deals damage equal to its power to target creature you don't control. effect = new DamageWithPowerTargetEffect(); effect.setText("It deals damage equal to its power to target creature you don't control"); this.getSpellAbility().addTarget(new TargetCreaturePermanent(filter)); this.getSpellAbility().addEffect(effect); }
public ClearShot(UUID ownerId, CardSetInfo setInfo) { super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{2}{G}"); // Target creature you control gets +1/+1 until end of turn. Effect effect = new BoostTargetEffect(1, 1, Duration.EndOfTurn); this.getSpellAbility().addTarget(new TargetControlledCreaturePermanent()); this.getSpellAbility().addEffect(effect); // It deals damage equal to its power to target creature you don't control. effect = new DamageWithPowerTargetEffect(); effect.setText("It deals damage equal to its power to target creature you don't control"); this.getSpellAbility().addTarget(new TargetCreaturePermanent(filter)); this.getSpellAbility().addEffect(effect); }
public HuatliDinosaurKnight(UUID ownerId, CardSetInfo setInfo) { super(ownerId, setInfo, new CardType[]{CardType.PLANESWALKER}, "{4}{R}{W}"); addSuperType(SuperType.LEGENDARY); this.subtype.add(SubType.HUATLI); this.addAbility(new PlaneswalkerEntersWithLoyaltyCountersAbility(4)); // +2: Put two +1/+1 counters on up to one target Dinosaur you control. Ability ability = new LoyaltyAbility(new AddCountersTargetEffect(CounterType.P1P1.createInstance(2)) .setText("Put two +1/+1 counters on up to one target Dinosaur you control."), 2 ); ability.addTarget(new TargetCreaturePermanent(0, 1, filter, false)); this.addAbility(ability); // -3: Target Dinosaur you control deals damage equal to its power to target creature you don't control. ability = new LoyaltyAbility(new DamageWithPowerTargetEffect(), -3); ability.addTarget(new TargetCreaturePermanent(filter)); ability.addTarget(new TargetCreaturePermanent(filter2)); this.addAbility(ability); // -7: Dinosaurs you control get +4/+4 until end of turn. this.addAbility(new LoyaltyAbility(new BoostControlledEffect(4, 4, Duration.EndOfTurn, filter3), -7)); }
public VivienOfTheArkbow(UUID ownerId, CardSetInfo setInfo) { super(ownerId, setInfo, new CardType[]{CardType.PLANESWALKER}, "{4}{G}{G}"); this.addSuperType(SuperType.LEGENDARY); this.subtype.add(SubType.VIVIEN); this.addAbility(new PlaneswalkerEntersWithLoyaltyCountersAbility(5)); // +2: Put two +1/+1 counters on up to one target creature. Ability ability = new LoyaltyAbility(new AddCountersTargetEffect(CounterType.P1P1.createInstance(2)), 2); ability.addTarget(new TargetCreaturePermanent(0, 1)); this.addAbility(ability); // −3: Target creature you control deals damage equal to its power to target creature you don't control. ability = new LoyaltyAbility(new DamageWithPowerTargetEffect(), -3); ability.addTarget(new TargetControlledCreaturePermanent()); ability.addTarget(new TargetCreaturePermanent(filter)); this.addAbility(ability); // −9: Creatures you control get +4/+4 and gain trample until end of turn. ability = new LoyaltyAbility( new BoostControlledEffect(4, 4, Duration.EndOfTurn) .setText("Creatures you control get +4/+4"), -9 ); ability.addEffect(new GainAbilityControlledEffect( TrampleAbility.getInstance(), Duration.EndOfTurn, StaticFilters.FILTER_PERMANENT_CREATURES ).setText("and gain trample until end of turn")); this.addAbility(ability); }
public ThrashThreat(UUID ownerId, CardSetInfo setInfo) { super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, new CardType[]{CardType.SORCERY}, "{R/G}{R/G}", "{2}{R}{G}", SpellAbilityType.SPLIT); // Thrash // Target creature you control deals damage equal to its power to target creature or planeswalker you don't control. this.getLeftHalfCard().getSpellAbility().addEffect( new DamageWithPowerTargetEffect() .setText("Target creature you control deals damage equal to its power " + "to target creature or planeswalker you don't control.") ); this.getLeftHalfCard().getSpellAbility().addTarget(new TargetControlledCreaturePermanent()); this.getLeftHalfCard().getSpellAbility().addTarget(new TargetPermanent(filter)); // Threat // Create a 4/4 red and green Beast creature token with trample. this.getRightHalfCard().getSpellAbility().addEffect(new CreateTokenEffect(new RedGreenBeastToken())); }
public NaturesWay(UUID ownerId, CardSetInfo setInfo) { super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{1}{G}"); // Target creature you control gains vigilance and trample until end of turn. Effect effect = new GainAbilityTargetEffect(VigilanceAbility.getInstance(), Duration.EndOfTurn); effect.setText("Target creature you control gains vigilance"); this.getSpellAbility().addEffect(effect); effect = new GainAbilityTargetEffect(TrampleAbility.getInstance(), Duration.EndOfTurn); effect.setText("and trample until end of turn"); this.getSpellAbility().addEffect(effect); this.getSpellAbility().addTarget(new TargetControlledCreaturePermanent()); // It deals damage equal to its power to target creature you don't control. effect = new DamageWithPowerTargetEffect(); effect.setText("It deals damage equal to its power to target creature you don't control"); this.getSpellAbility().addTarget(new TargetCreaturePermanent(filter)); this.getSpellAbility().addEffect(effect); }