public FlipCoinEffect(Effect effectWon, Effect effectLost, Outcome outcome) { super(outcome); addEffectWon(effectWon); addEffectLost(effectLost); }
@Override public ReturnToLibraryPermanentEffect copy() { return new ReturnToLibraryPermanentEffect(this); } }
@Override public PreventDamageByColorEffect copy() { return new PreventDamageByColorEffect(this); } }
public CreepingChillAbility() { super( Zone.LIBRARY, Zone.GRAVEYARD, new DoIfCostPaid( new DamagePlayersEffect(3, TargetController.OPPONENT), new ExileSourceFromGraveCost() ).addEffect(new GainLifeEffect(3)), "", true ); }
public TimeToFeedDiesTriggeredAbility(UUID watchedCreatureId, int zoneChangeCounter) { super(new GainLifeEffect(3), Duration.EndOfTurn, false); this.watchedCreatureId = watchedCreatureId; this.zoneChangeCounter = zoneChangeCounter; }
public DamageAllEffect(DynamicValue amount, FilterPermanent filter) { super(Outcome.Damage); this.amount = amount; this.filter = filter; setText(); }
@Override public DoIfCostPaid copy() { return new DoIfCostPaid(this); } }
public SacrificeOpponentsUnlessPayEffect(Cost cost, FilterPermanent filter, DynamicValue amount) { super(Outcome.Sacrifice); this.cost = cost; this.amount = amount; this.filter = filter; setText(); }
@Override public FortifyEffect copy(){ return new FortifyEffect(this); } }
public PreventAllDamageByAttachedEffect(Duration duration, String attachedDescription, boolean onlyCombat) { super(duration, Integer.MAX_VALUE, onlyCombat, false); this.attachedDescription = attachedDescription; staticText = setText(); }
public ChooseACardNameEffect(TypeOfName typeOfName) { super(Outcome.Detriment); this.typeOfName = typeOfName; staticText = setText(); }
public RevealCardsFromLibraryUntilEffect(FilterCard filter, Zone zoneToPutCard, Zone zoneToPutRest, boolean shuffleRestInto, boolean anyOrder) { super(Outcome.Benefit); this.filter = filter; this.zoneToPutCard = zoneToPutCard; this.zoneToPutRest = zoneToPutRest; this.shuffleRestInto = shuffleRestInto; this.anyOrder = anyOrder; setText(); }
public RevealHandTargetEffect(TargetController targetController) { super(Outcome.Discard); this.targetController = targetController; this.staticText = getText(); }
public ExileAllEffect(FilterPermanent filter, UUID exileId, String exileZone) { super(Outcome.Exile); this.filter = filter; this.exileZone = exileZone; this.exileId = exileId; setText(); }
public SetPlayerLifeTargetEffect(DynamicValue amount) { super(Outcome.Neutral); this.amount = amount; this.staticText = setText(); }
@Override public RevealHandSourceControllerEffect copy() { return new RevealHandSourceControllerEffect(this); } }
public ExileFromZoneTargetEffect(Zone zone, UUID exileId, String exileName, FilterCard filter, int amount) { super(Outcome.Exile); this.zone = zone; this.filter = filter; this.exileId = exileId; this.exileName = exileName; this.amount = amount; setText(); }
@Override public boolean replaceEvent(GameEvent event, Ability source, Game game) { preventDamageAction(event, source, game); this.used = true; return false; }
public CantBeTargetedSourceEffect(FilterObject filterSource, Duration duration) { super(duration, Outcome.Benefit); this.filterSource = filterSource; setText(); }
public SacrificeOpponentsUnlessPayEffect(DynamicValue dynamicGenericMana, FilterPermanent filter, DynamicValue amount) { super(Outcome.Sacrifice); this.dynamicGenericMana = dynamicGenericMana; this.amount = amount; this.filter = filter; setText(); }