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

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

Best Java code snippets using mage.abilities.effects.keyword.ProtectionChosenColorAttachedEffect.<init> (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<init>

Popular methods of ProtectionChosenColorAttachedEffect

    Popular in Java

    • Start an intent from android
    • findViewById (Activity)
    • getExternalFilesDir (Context)
    • startActivity (Activity)
    • GridLayout (java.awt)
      The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
    • Socket (java.net)
      Provides a client-side TCP socket.
    • Selector (java.nio.channels)
      A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
    • SQLException (java.sql)
      An exception that indicates a failed JDBC operation. It provides the following information about pro
    • Pattern (java.util.regex)
      Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
    • Servlet (javax.servlet)
      Defines methods that all servlets must implement. A servlet is a small Java program that runs within
    • Top Vim plugins
    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