congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
ProtectionChosenColorAttachedEffect
Code IndexAdd Tabnine to your IDE (free)

How to use
ProtectionChosenColorAttachedEffect
in
mage.abilities.effects.keyword

Best Java code snippets using mage.abilities.effects.keyword.ProtectionChosenColorAttachedEffect (Showing top 5 results out of 315)

origin: magefree/mage

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

public ChoMannosBlessing(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.ENCHANTMENT},"{W}{W}");
  this.subtype.add(SubType.AURA);
  // Flash
  this.addAbility(FlashAbility.getInstance());
  // Enchant creature
  TargetPermanent auraTarget = new TargetCreaturePermanent();
  this.getSpellAbility().addTarget(auraTarget);
  this.getSpellAbility().addEffect(new AttachEffect(Outcome.Protect));
  this.addAbility(new EnchantAbility(auraTarget.getTargetName()));
  // As Cho-Manno's Blessing enters the battlefield, choose a color.
  this.addAbility(new AsEntersBattlefieldAbility(new ChooseColorEffect(Outcome.Benefit)));
  // Enchanted creature has protection from the chosen color. This effect doesn't remove Cho-Manno's Blessing.
  this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new ProtectionChosenColorAttachedEffect(true)));
}
origin: magefree/mage

public PentarchWard(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.ENCHANTMENT},"{2}{W}");
  this.subtype.add(SubType.AURA);
  // Enchant creature
  TargetPermanent auraTarget = new TargetCreaturePermanent();
  this.getSpellAbility().addTarget(auraTarget);
  this.getSpellAbility().addEffect(new AttachEffect(Outcome.Protect));
  this.addAbility(new EnchantAbility(auraTarget.getTargetName()));
  
  // When Pentarch Ward enters the battlefield, draw a card.
  this.addAbility(new EntersBattlefieldTriggeredAbility(new DrawCardSourceControllerEffect(1)));
  
  // As Pentarch Ward enters the battlefield, choose a color.
  this.addAbility(new AsEntersBattlefieldAbility(new ChooseColorEffect(Outcome.Benefit)));
  
  // Enchanted creature has protection from the chosen color. This effect doesn't remove Pentarch Ward.
  this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new ProtectionChosenColorAttachedEffect(true)));
}
origin: magefree/mage

public FlickeringWard(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.ENCHANTMENT},"{W}");
  this.subtype.add(SubType.AURA);
  // Enchant creature
  TargetPermanent auraTarget = new TargetCreaturePermanent();
  this.getSpellAbility().addTarget(auraTarget);
  this.getSpellAbility().addEffect(new AttachEffect(Outcome.Protect));
  this.addAbility(new EnchantAbility(auraTarget.getTargetName()));
  // As Flickering Ward enters the battlefield, choose a color.
  this.addAbility(new AsEntersBattlefieldAbility(new ChooseColorEffect(Outcome.Benefit)));
  // Enchanted creature has protection from the chosen color. This effect doesn't remove Flickering Ward.
  this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new ProtectionChosenColorAttachedEffect(true)));
  // {W}: Return Flickering Ward to its owner's hand.
  this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new ReturnToHandSourceEffect(), new ManaCostsImpl("{W}")));
}
origin: magefree/mage

public WardOfLights(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.ENCHANTMENT},"{W}{W}");
  this.subtype.add(SubType.AURA);
  // You may cast Ward of Lights as though it had flash. If you cast it any time a sorcery couldn't have been cast, the controller of the permanent it becomes sacrifices it at the beginning of the next cleanup step.
  this.addAbility(new SimpleStaticAbility(Zone.ALL, new CastAsThoughItHadFlashSourceEffect(Duration.EndOfGame)));
  this.addAbility(new SacrificeIfCastAtInstantTimeTriggeredAbility());
  // Enchant creature
  TargetPermanent auraTarget = new TargetCreaturePermanent();
  this.getSpellAbility().addTarget(auraTarget);
  this.getSpellAbility().addEffect(new AttachEffect(Outcome.AddAbility));
  Ability ability = new EnchantAbility(auraTarget.getTargetName());
  this.addAbility(ability);
  // As Ward of Lights enters the battlefield, choose a color.
  this.addAbility(new AsEntersBattlefieldAbility(new ChooseColorEffect(Outcome.Benefit)));
  // Enchanted creature has protection from the chosen color. This effect doesn't remove Ward of Lights.
  this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new ProtectionChosenColorAttachedEffect(true)));
}
mage.abilities.effects.keywordProtectionChosenColorAttachedEffect

Most used methods

  • <init>

Popular in Java

  • Updating database using SQL prepared statement
  • requestLocationUpdates (LocationManager)
  • setContentView (Activity)
  • onCreateOptionsMenu (Activity)
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • Option (scala)
  • Top 15 Vim Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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