Tabnine Logo
UntapAllEffect
Code IndexAdd Tabnine to your IDE (free)

How to use
UntapAllEffect
in
mage.abilities.effects.common

Best Java code snippets using mage.abilities.effects.common.UntapAllEffect (Showing top 11 results out of 315)

origin: magefree/mage

@Override
public UntapAllEffect copy() {
  return new UntapAllEffect(this);
}
origin: magefree/mage

new UntapAllEffect(filter).apply(game, source);
origin: magefree/mage

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));
}
origin: magefree/mage

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")));
}
origin: magefree/mage

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));
}
origin: magefree/mage

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()));
}
origin: magefree/mage

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);
}
origin: magefree/mage

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));
}
origin: magefree/mage

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"));
}
origin: magefree/mage

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);
}
origin: magefree/mage

new UntapAllEffect(StaticFilters.FILTER_ATTACKING_CREATURES),
new ManaCostsImpl("{W}{U}{B}{R}{G}"),
new IsPhaseCondition(TurnPhase.COMBAT)
mage.abilities.effects.commonUntapAllEffect

Most used methods

  • <init>
  • apply

Popular in Java

  • Making http post requests using okhttp
  • onRequestPermissionsResult (Fragment)
  • getApplicationContext (Context)
  • getContentResolver (Context)
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • Path (java.nio.file)
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • JFrame (javax.swing)
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now