@Override public SetPlayerLifeSourceEffect copy() { return new SetPlayerLifeSourceEffect(this); }
ProvidenceDelayedTriggeredAbility() { super(new SetPlayerLifeSourceEffect(26)); }
public FormOfTheDinosaur(UUID ownerId, CardSetInfo setInfo) { super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{4}{R}{R}"); // When Form of the Dinosaur enters the battlefield, your life total becomes 15. this.addAbility(new EntersBattlefieldTriggeredAbility(new SetPlayerLifeSourceEffect(15), false)); // At the beginning of your upkeep, Form of the Dinosaur deals 15 damage to target creature an opponent controls and that creature deals damage equal to its power to you. Ability ability = new BeginningOfUpkeepTriggeredAbility(new FormOfTheDinosaurEffect(), TargetController.YOU, false); ability.addTarget(new TargetOpponentsCreaturePermanent()); this.addAbility(ability); }
public FormOfTheDragon(UUID ownerId, CardSetInfo setInfo) { super(ownerId,setInfo,new CardType[]{CardType.ENCHANTMENT},"{4}{R}{R}{R}"); // At the beginning of your upkeep, Form of the Dragon deals 5 damage to any target. Ability ability = new BeginningOfUpkeepTriggeredAbility(new DamageTargetEffect(5), TargetController.YOU, false); ability.addTarget(new TargetAnyTarget()); this.addAbility(ability); // At the beginning of each end step, your life total becomes 5. this.addAbility(new BeginningOfEndStepTriggeredAbility(new SetPlayerLifeSourceEffect(5), TargetController.ANY, false)); // Creatures without flying can't attack you. this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new CantAttackYouAllEffect(Duration.WhileOnBattlefield, filter))); }
public Providence(UUID ownerId, CardSetInfo setInfo) { super(ownerId,setInfo,new CardType[]{CardType.SORCERY},"{5}{W}{W}"); // You may reveal this card from your opening hand. If you do, at the beginning of the first upkeep, your life total becomes 26. Ability ability = new ChancellorAbility(new ProvidenceDelayedTriggeredAbility(), abilityText); ability.setRuleAtTheTop(true); this.addAbility(ability); // Your life total becomes 26. this.getSpellAbility().addEffect(new SetPlayerLifeSourceEffect(26)); }
public CaptiveAudience(UUID ownerId, CardSetInfo setInfo) { super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{5}{B}{R}"); // Captive Audience enters the battlefield under the control of an opponent of your choice. this.addAbility(new EntersBattlefieldAbility(new CaptiveAudienceETBEffect())); // At the beginning of your upkeep, choose one that hasn't been chosen — // • Your life total becomes 4. Ability ability = new BeginningOfUpkeepTriggeredAbility( new SetPlayerLifeSourceEffect(4), TargetController.YOU, false ); ability.getModes().setEachModeOnlyOnce(true); // • Discard your hand. ability.addMode(new Mode(new DiscardHandControllerEffect())); // • Each opponent creates five 2/2 black Zombie creature tokens. ability.addMode(new Mode(new CaptiveAudienceCreateTokensEffect())); this.addAbility(ability); }
public AngelOfGrace(UUID ownerId, CardSetInfo setInfo) { super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{3}{W}{W}"); this.subtype.add(SubType.ANGEL); this.power = new MageInt(5); this.toughness = new MageInt(4); // Flash this.addAbility(FlashAbility.getInstance()); // Flying this.addAbility(FlyingAbility.getInstance()); // When Angel of Grace enters the battlefield, until end of turn, damage that would reduce your life total to less than 1 reduces it to 1 instead. this.addAbility(new EntersBattlefieldTriggeredAbility(new AngelOfGraceReplacementEffect())); // {4}{W}{W}, Exile Angel of Grace from your graveyard: Your life total becomes 10. Ability ability = new SimpleActivatedAbility( Zone.GRAVEYARD, new SetPlayerLifeSourceEffect(10), new ManaCostsImpl("{4}{W}{W}") ); ability.addCost(new ExileSourceFromGraveCost()); this.addAbility(ability); }