@Override public UntapAllEffect copy() { return new UntapAllEffect(this); }
public Awakening(UUID ownerId, CardSetInfo setInfo) { super(ownerId,setInfo,new CardType[]{CardType.ENCHANTMENT},"{2}{G}{G}"); // At the beginning of each upkeep, untap all creatures and lands. this.addAbility(new BeginningOfUpkeepTriggeredAbility(new UntapAllEffect(filter), TargetController.ANY, false)); }
public IntruderAlarm(UUID ownerId, CardSetInfo setInfo) { super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{2}{U}"); // Creatures don't untap during their controllers' untap steps. this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new DontUntapInControllersUntapStepAllEffect(Duration.WhileOnBattlefield, TargetController.ANY, FILTER_PERMANENT_CREATURES))); // Whenever a creature enters the battlefield, untap all creatures. this.addAbility(new EntersBattlefieldAllTriggeredAbility(new UntapAllEffect(FILTER_PERMANENT_CREATURES), new FilterCreaturePermanent("a creature"))); }
public CallToGlory(UUID ownerId, CardSetInfo setInfo) { super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{1}{W}"); //Untap all creatures you control. Samurai creatures you control get +1/+1 until end of turn. this.getSpellAbility().addEffect(new UntapAllEffect(StaticFilters.FILTER_CONTROLLED_CREATURE)); this.getSpellAbility().addEffect(new BoostControlledEffect(1, 1, Duration.EndOfTurn, filter, false)); }
public BattleCry(UUID ownerId, CardSetInfo setInfo) { super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{2}{W}"); // Untap all white creatures you control. this.getSpellAbility().addEffect(new UntapAllEffect(filter)); // Whenever a creature blocks this turn, it gets +0/+1 until end of turn. this.getSpellAbility().addEffect(new CreateDelayedTriggeredAbilityEffect(new BattleCryTriggeredAbility())); }
public NaturesWill(UUID ownerId, CardSetInfo setInfo) { super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{2}{G}{G}"); // Whenever one or more creatures you control deal combat damage to a player, tap all lands that player controls and untap all lands you control. Effect tapAllEffect = new TapAllTargetPlayerControlsEffect(new FilterLandPermanent()); tapAllEffect.setText("tap all lands that player controls"); Ability ability = new ControlledCreaturesDealCombatDamagePlayerTriggeredAbility(Zone.BATTLEFIELD, tapAllEffect, true); ability.addEffect(new UntapAllEffect(new FilterControlledLandPermanent())); addAbility(ability); }
public BenefactorsDraught(UUID ownerId, CardSetInfo setInfo) { super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{1}{G}"); // Untap all creatures. this.getSpellAbility().addEffect(new UntapAllEffect(new FilterCreaturePermanent())); // Until end of turn, whenever a creature an opponent controls blocks, draw a card. this.getSpellAbility().addEffect(new CreateDelayedTriggeredAbilityEffect(new BenefactorsDraughtTriggeredAbility())); // Draw a card. this.getSpellAbility().addEffect(new DrawCardSourceControllerEffect(1)); }
public JoinShields(UUID ownerId, CardSetInfo setInfo) { super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{3}{G}{W}"); // Untap all creatures you control. They gain hexproof and indestructible until end of turn. this.getSpellAbility().addEffect(new UntapAllEffect( StaticFilters.FILTER_CONTROLLED_CREATURES )); this.getSpellAbility().addEffect(new GainAbilityControlledEffect( HexproofAbility.getInstance(), Duration.EndOfTurn, StaticFilters.FILTER_CONTROLLED_CREATURES ).setText("They gain hexproof")); this.getSpellAbility().addEffect(new GainAbilityControlledEffect( IndestructibleAbility.getInstance(), Duration.EndOfTurn, StaticFilters.FILTER_CONTROLLED_CREATURES ).setText("and indestructible until end of turn")); }
new UntapAllEffect(filter).apply(game, source);
public GideonMartialParagon(UUID ownerId, CardSetInfo setInfo) { super(ownerId, setInfo, new CardType[]{CardType.PLANESWALKER}, "{4}{W}"); this.addSuperType(SuperType.LEGENDARY); this.subtype.add(SubType.GIDEON); this.addAbility(new PlaneswalkerEntersWithLoyaltyCountersAbility(5)); // +2: Untap all creatures you control. Those creatures get +1/+1 until end of turn. LoyaltyAbility ability = new LoyaltyAbility(new UntapAllEffect(new FilterControlledCreaturePermanent()), 2); Effect effect = new BoostControlledEffect(1, 1, Duration.EndOfTurn); effect.setText("Those creatures get +1/+1 until end of turn"); ability.addEffect(effect); this.addAbility(ability); // 0: Until end of turn, Gideon, Martial Paragon, becomes a 5/5 Human Soldier creature with indestructible that's still a planeswalker. // Prevent all damage that would be dealt to him this turn. ability = new LoyaltyAbility(new BecomesCreatureSourceEffect(new GideonMartialParagonToken(), "planeswalker", Duration.EndOfTurn), 0); effect = new PreventAllDamageToSourceEffect(Duration.EndOfTurn); effect.setText("Prevent all damage that would be dealt to him this turn"); ability.addEffect(effect); this.addAbility(ability); // -10: Creatures you control get +2/+2 until end of turn. Tap all creatures your opponents control. ability = new LoyaltyAbility(new BoostControlledEffect(2, 2, Duration.EndOfTurn), -10); effect = new TapAllEffect(new FilterOpponentsCreaturePermanent()); effect.setText("Tap all creatures your opponents control"); ability.addEffect(effect); this.addAbility(ability); }
new UntapAllEffect(StaticFilters.FILTER_ATTACKING_CREATURES), new ManaCostsImpl("{W}{U}{B}{R}{G}"), new IsPhaseCondition(TurnPhase.COMBAT)