Tabnine Logo
OnLeaveReturnExiledToBattlefieldAbility.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
mage.abilities.common.delayed.OnLeaveReturnExiledToBattlefieldAbility
constructor

Best Java code snippets using mage.abilities.common.delayed.OnLeaveReturnExiledToBattlefieldAbility.<init> (Showing top 20 results out of 315)

origin: magefree/mage

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

public HixusPrisonWardenTriggeredAbility(Effect effect) {
  super(Zone.BATTLEFIELD, effect);
  this.addEffect(new CreateDelayedTriggeredAbilityEffect(new OnLeaveReturnExiledToBattlefieldAbility()));
}
origin: magefree/mage

public ColossalWhaleAbility() {
  super(Zone.BATTLEFIELD, null);
  this.addEffect(new ColossalWhaleExileEffect());
  this.addEffect(new CreateDelayedTriggeredAbilityEffect(new OnLeaveReturnExiledToBattlefieldAbility()));
}
origin: magefree/mage

public GraspOfFate(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{1}{W}{W}");
  // When Grasp of Fate enters the battlefield, for each opponent, exile up to one target nonland permanent that player controls until Grasp of Fate leaves the battlefield.
  Ability ability = new EntersBattlefieldTriggeredAbility(new GraspOfFateExileEffect());
  ability.addEffect(new CreateDelayedTriggeredAbilityEffect(new OnLeaveReturnExiledToBattlefieldAbility()));
  ability.setTargetAdjuster(GraspOfFateAdjuster.instance);
  this.addAbility(ability);
}
origin: magefree/mage

public IsolationZone(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.ENCHANTMENT},"{2}{W}{W}");
  // When Isolation Zone enters the battlefield, exile target creature or enchantment an opponent controls until Isolation Zone leaves the battlefield.
  Ability ability = new EntersBattlefieldTriggeredAbility(new IsolationZoneExileEffect());
  ability.addTarget(new TargetPermanent(filter));
  ability.addEffect(new CreateDelayedTriggeredAbilityEffect(new OnLeaveReturnExiledToBattlefieldAbility()));
  this.addAbility(ability);
}
origin: magefree/mage

public SuspensionField(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.ENCHANTMENT},"{1}{W}");
  // When Suspension Field enters the battlefield, you may exile target creature with toughness 3 or greater until Suspension Field leaves the battlefield.
  Ability ability = new EntersBattlefieldTriggeredAbility(new SuspensionFieldExileEffect(), true);
  ability.addTarget(new TargetCreaturePermanent(filter));
  ability.addEffect(new CreateDelayedTriggeredAbilityEffect(new OnLeaveReturnExiledToBattlefieldAbility()));
  this.addAbility(ability);
}
origin: magefree/mage

public Silkwrap(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.ENCHANTMENT},"{1}{W}");
  // When Silkwrap enters the battlefield, exile target creature with converted mana cost 3 or less an opponent controls until Silkwrap leaves the battlefield.
  Ability ability = new EntersBattlefieldTriggeredAbility(new SilkwrapEffect());
  ability.addTarget(new TargetPermanent(filter));
  ability.addEffect(new CreateDelayedTriggeredAbilityEffect(new OnLeaveReturnExiledToBattlefieldAbility()));
  this.addAbility(ability);
}
origin: magefree/mage

public BanishingLight(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{2}{W}");
  // When Banishing Light enters the battlefield, exile target nonland permanent an opponent controls until Banishing Light leaves the battlefield.
  Ability ability = new EntersBattlefieldTriggeredAbility(new ExileUntilSourceLeavesEffect(filter.getMessage()));
  ability.addTarget(new TargetPermanent(filter));
  ability.addEffect(new CreateDelayedTriggeredAbilityEffect(new OnLeaveReturnExiledToBattlefieldAbility()));
  this.addAbility(ability);
}
origin: magefree/mage

public HieromancersCage(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{3}{W}");
  // When Hieromancer's Cage enters the battlefield, exile target nonland permanent an opponent controls until Hieromancer's Cage leaves the battlefield.
  Ability ability = new EntersBattlefieldTriggeredAbility(
      new ExileUntilSourceLeavesEffect(filter.getMessage())
  );
  ability.addTarget(new TargetPermanent(filter));
  ability.addEffect(new CreateDelayedTriggeredAbilityEffect(
      new OnLeaveReturnExiledToBattlefieldAbility())
  );
  this.addAbility(ability);
}
origin: magefree/mage

public ThopterArrest(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{2}{W}");
  // When Thopter Arrest enters the battlefield, exile target artifact or creature an opponent controls until Thopter Arrest leaves the battlefield.
  Ability ability = new EntersBattlefieldTriggeredAbility(new ExileUntilSourceLeavesEffect(filter.getMessage()));
  ability.addTarget(new TargetPermanent(filter));
  ability.addEffect(new CreateDelayedTriggeredAbilityEffect(new OnLeaveReturnExiledToBattlefieldAbility()));
  this.addAbility(ability);
}
origin: magefree/mage

public GOTOJAIL(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{W}");
  // When GO TO JAIL enters the battlefield, exile target creature an opponent controls until GO TO JAIL leaves the battlefield.
  Ability ability = new EntersBattlefieldTriggeredAbility(new GoToJailExileEffect());
  ability.addTarget(new TargetCreaturePermanent(filter));
  ability.addEffect(new CreateDelayedTriggeredAbilityEffect(new OnLeaveReturnExiledToBattlefieldAbility()));
  this.addAbility(ability);
  // At the beginning of the upkeep of the exiled card's owner, that player rolls two six-sided dice. If he or she rolls doubles, sacrifice GO TO JAIL.
  this.addAbility(new GoToJailTriggeredAbility());
}
origin: magefree/mage

public BanisherPriest(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{1}{W}{W}");
  this.subtype.add(SubType.HUMAN, SubType.CLERIC);
  this.power = new MageInt(2);
  this.toughness = new MageInt(2);
  // When Banisher Priest enters the battlefield, exile target creature an opponent controls until Banisher Priest leaves the battlefield.
  Ability ability = new EntersBattlefieldTriggeredAbility(new BanisherPriestExileEffect());
  ability.addTarget(new TargetCreaturePermanent(filter));
  ability.addEffect(new CreateDelayedTriggeredAbilityEffect(new OnLeaveReturnExiledToBattlefieldAbility()));
  this.addAbility(ability);
}
origin: magefree/mage

public SealAway(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{1}{W}");
  //Flash
  this.addAbility(FlashAbility.getInstance());
  //When Seal Away enters the battlefield, exile target tapped creature an opponent controls until Seal Away leaves the battlefield.
  Ability ability = new EntersBattlefieldTriggeredAbility(new ExileUntilSourceLeavesEffect(filter.getMessage()));
  ability.addTarget(new TargetPermanent(filter));
  ability.addEffect(new CreateDelayedTriggeredAbilityEffect(new OnLeaveReturnExiledToBattlefieldAbility()));
  this.addAbility(ability);
}
origin: magefree/mage

public StasisSnare(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.ENCHANTMENT},"{1}{W}{W}");
  // Flash
  this.addAbility(FlashAbility.getInstance());
  // When Stasis Snare enters the battlefield, exile target creature an opponent controls until Stasis Snare leaves the battlefield.
  Ability ability = new EntersBattlefieldTriggeredAbility(new ExileUntilSourceLeavesEffect(filter.getMessage()));
  ability.addTarget(new TargetCreaturePermanent(filter));
  ability.addEffect(new CreateDelayedTriggeredAbilityEffect(new OnLeaveReturnExiledToBattlefieldAbility()));
  this.addAbility(ability);
}
origin: magefree/mage

public QuarantineField(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{X}{X}{W}{W}");
  // Quarantine Field enters the battlefield with X isolation counters on it.
  this.addAbility(new EntersBattlefieldAbility(new EntersBattlefieldWithXCountersEffect(CounterType.ISOLATION.createInstance())));
  // When Quarantine Field enters the battlefield, for each isolation counter on it, exile up to one target nonland permanent an opponent controls until Quarantine Field leaves the battlefield.
  Ability ability = new EntersBattlefieldTriggeredAbility(new QuarantineFieldEffect(), false);
  ability.addEffect(new CreateDelayedTriggeredAbilityEffect(new OnLeaveReturnExiledToBattlefieldAbility()));
  ability.setTargetAdjuster(QuarantineFieldAdjuster.instance);
  this.addAbility(ability);
}
origin: magefree/mage

public TrapjawTyrant(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{3}{W}{W}");
  this.subtype.add(SubType.DINOSAUR);
  this.power = new MageInt(5);
  this.toughness = new MageInt(5);
  // Enrage — Whenever Trapjaw Tyrant is dealt damage, exile target creature your opponent controls until Trapjaw Tyrant leaves the battlefield.
  Ability ability = new DealtDamageToSourceTriggeredAbility(Zone.BATTLEFIELD, new ExileUntilSourceLeavesEffect(filter.getMessage()), false, true);
  ability.addTarget(new TargetCreaturePermanent(filter));
  ability.addEffect(new CreateDelayedTriggeredAbilityEffect(new OnLeaveReturnExiledToBattlefieldAbility()));
  this.addAbility(ability);
}
origin: magefree/mage

public FairgroundsWarden(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{2}{W}");
  this.subtype.add(SubType.DWARF);
  this.subtype.add(SubType.SOLDIER);
  this.power = new MageInt(1);
  this.toughness = new MageInt(3);
  // When Fairgrounds Warden enters the battlefield, exile target creature an opponent controls until Fairgrounds Warden leaves the battlefield.
  Ability ability = new EntersBattlefieldTriggeredAbility(new FairsgroundsWardenExileEffect());
  ability.addTarget(new TargetCreaturePermanent(filter));
  ability.addEffect(new CreateDelayedTriggeredAbilityEffect(new OnLeaveReturnExiledToBattlefieldAbility()));
  this.addAbility(ability);
}
origin: magefree/mage

public HostageTaker(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{2}{U}{B}");
  this.subtype.add(SubType.HUMAN);
  this.subtype.add(SubType.PIRATE);
  this.power = new MageInt(2);
  this.toughness = new MageInt(3);
  // When Hostage Taker enters the battlefield, exile another target artifact or creature until Hostage Taker leaves the battlefield. You may cast that card as long as it remains exiled, and you may spend mana as though it were mana of any type to cast that spell.
  Ability ability = new EntersBattlefieldTriggeredAbility(new HostageTakerExileEffect(filter.getMessage()));
  ability.addTarget(new TargetPermanent(filter));
  ability.addEffect(new CreateDelayedTriggeredAbilityEffect(new OnLeaveReturnExiledToBattlefieldAbility()));
  this.addAbility(ability);
}
origin: magefree/mage

public IxalansBinding(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{3}{W}");
  // When Ixalan's Binding enters the battlefield, exile target nonland permanent an opponent controls until Ixalan's Binding leaves the battlefield.
  Ability ability = new EntersBattlefieldTriggeredAbility(new ExileUntilSourceLeavesEffect(filter.getMessage()));
  ability.addTarget(new TargetPermanent(filter));
  ability.addEffect(new CreateDelayedTriggeredAbilityEffect(new OnLeaveReturnExiledToBattlefieldAbility()));
  this.addAbility(ability);
  // Your opponents can't cast spells with the same name as the exiled card.
  this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new IxalansBindingReplacementEffect()));
}
origin: magefree/mage

public CastOut(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{3}{W}");
  // Flash
  this.addAbility(FlashAbility.getInstance());
  // When Cast Out enters the battlefield, exile target nonland permanent an opponent controls until Cast Out leaves the battlefield.
  Ability ability = new EntersBattlefieldTriggeredAbility(new ExileUntilSourceLeavesEffect(filter.getMessage()));
  ability.addTarget(new TargetPermanent(filter));
  ability.addEffect(new CreateDelayedTriggeredAbilityEffect(new OnLeaveReturnExiledToBattlefieldAbility()));
  this.addAbility(ability);
  // Cycling {W}
  this.addAbility(new CyclingAbility(new ManaCostsImpl("{W}")));
}
mage.abilities.common.delayedOnLeaveReturnExiledToBattlefieldAbility<init>

Popular methods of OnLeaveReturnExiledToBattlefieldAbility

  • getSourceId
  • setRuleVisible

Popular in Java

  • Making http post requests using okhttp
  • getResourceAsStream (ClassLoader)
  • notifyDataSetChanged (ArrayAdapter)
  • scheduleAtFixedRate (Timer)
  • Menu (java.awt)
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • Top plugins for Android Studio
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