congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
AddManaToManaPoolSourceControllerEffect.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
mage.abilities.effects.mana.AddManaToManaPoolSourceControllerEffect
constructor

Best Java code snippets using mage.abilities.effects.mana.AddManaToManaPoolSourceControllerEffect.<init> (Showing top 15 results out of 315)

origin: magefree/mage

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

public FrontierSiegeKhansTriggeredAbility() {
  super(Zone.BATTLEFIELD, new AddManaToManaPoolSourceControllerEffect(Mana.GreenMana(2)), false);
}
origin: magefree/mage

public ChannelTheSuns(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.SORCERY},"{3}{G}");
  // Add {W}{U}{B}{R}{G}.
  Effect effect = new AddManaToManaPoolSourceControllerEffect(new Mana(1, 1, 1, 1, 1, 0, 0, 0));
  this.getSpellAbility().addEffect(effect);
}
origin: magefree/mage

public MarduWarshrieker(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{3}{R}");
  this.subtype.add(SubType.ORC);
  this.subtype.add(SubType.SHAMAN);
  this.power = new MageInt(3);
  this.toughness = new MageInt(3);
  // <em>Raid</em> - When Mardu Warshrieker enters the battlefield, if you attacked with a creature this turn, add {R}{W}{B}.
  this.addAbility(new ConditionalInterveningIfTriggeredAbility(new EntersBattlefieldTriggeredAbility(new AddManaToManaPoolSourceControllerEffect(new Mana(1, 0, 0, 1, 1, 0, 0, 0))), RaidCondition.instance,
      "<i>Raid</i> &mdash; When {this} enters the battlefield, if you attacked with a creature this turn, add {R}{W}{B}."),
      new PlayerAttackedWatcher());
}
origin: magefree/mage

public ConduitOfEmrakul(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"");
  this.subtype.add(SubType.ELDRAZI);
  this.subtype.add(SubType.WEREWOLF);
  this.power = new MageInt(5);
  this.toughness = new MageInt(4);
  // this card is the second face of double-faced card
  this.nightCard = true;
  // Whenever Conduit of Emrakul attacks, add {C}{C} at the beginning of your next main phase this turn.
  Effect effect = new CreateDelayedTriggeredAbilityEffect(
      new AtTheBeginOfMainPhaseDelayedTriggeredAbility(
          new AddManaToManaPoolSourceControllerEffect(Mana.GenericMana(2)), false, TargetController.YOU, AtTheBeginOfMainPhaseDelayedTriggeredAbility.PhaseSelection.NEXT_MAIN_THIS_TURN));
  effect.setText("add {C}{C} at the beginning of your next main phase this turn");
  this.addAbility(new AttacksTriggeredAbility(effect, false));
}
origin: magefree/mage

public DarkPetition(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.SORCERY},"{3}{B}{B}");
  // Search your library for a card and put that card into your hand. Then shuffle your library.
  this.getSpellAbility().addEffect(new SearchLibraryPutInHandEffect(new TargetCardInLibrary()));
  // <i>Spell mastery</i> &mdash; If there are two or more instant and/or sorcery cards in your graveyard, add {B}{B}{B}.
  Effect effect = new ConditionalOneShotEffect(new AddManaToManaPoolSourceControllerEffect(Mana.BlackMana(3)),
      SpellMasteryCondition.instance, "<br><i>Spell mastery</i> &mdash; If there are two or more instant and/or sorcery cards in your graveyard, add {B}{B}{B}");
  this.getSpellAbility().addEffect(effect);
}
origin: magefree/mage

public HuttPalace(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.LAND},"");
  // Hutt Palace enters the battlefield tapped.
  this.addAbility(new EntersBattlefieldTappedAbility());
  // When Hutt Palace enters the battlefield , add {R}.
  this.addAbility(new EntersBattlefieldTriggeredAbility(new AddManaToManaPoolSourceControllerEffect(Mana.RedMana(1))));
  // {T}: Add {B} or {G} to you mana pool.
  this.addAbility(new BlackManaAbility());
  this.addAbility(new GreenManaAbility());
}
origin: magefree/mage

public SithCitadel(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.LAND},"");
  // Sith Citadel enters the battlefield tapped.
  this.addAbility(new EntersBattlefieldTappedAbility());
  // When Sith Citadel enters the battlefield , add {B}.
  this.addAbility(new EntersBattlefieldTriggeredAbility(new AddManaToManaPoolSourceControllerEffect(Mana.BlackMana(1))));
  // {T}: Add {U} or {R} to you mana pool.
  this.addAbility(new BlueManaAbility());
  this.addAbility(new RedManaAbility());
}
origin: magefree/mage

public EwokVillage(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.LAND},"");
  // Ewok Village enters the battlefield tapped.
  this.addAbility(new EntersBattlefieldTappedAbility());
  // When Ewok Village enters the battlefield , add {G}.
  this.addAbility(new EntersBattlefieldTriggeredAbility(new AddManaToManaPoolSourceControllerEffect(Mana.GreenMana(1))));
  // {T}: Add {R} or {W} to you mana pool.
  this.addAbility(new RedManaAbility());
  this.addAbility(new WhiteManaAbility());
}
origin: magefree/mage

public JediTemple(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.LAND},"");
  // Jedi Temple enters the battlefield tapped.
  this.addAbility(new EntersBattlefieldTappedAbility());
  // When Jedi Temple enters the battlefield , add {W}.
  this.addAbility(new EntersBattlefieldTriggeredAbility(new AddManaToManaPoolSourceControllerEffect(Mana.WhiteMana(1))));
  // {T}: Add {G} or {U} to you mana pool.
  this.addAbility(new GreenManaAbility());
  this.addAbility(new BlueManaAbility());
}
origin: magefree/mage

public DroidFoundry(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.LAND},"");
  // Droid Foundry enters the battlefield tapped.
  this.addAbility(new EntersBattlefieldTappedAbility());
  // When Droid Foundry enters the battlefield , add {U}.
  this.addAbility(new EntersBattlefieldTriggeredAbility(new AddManaToManaPoolSourceControllerEffect(Mana.BlueMana(1))));
  // {T}: Add {W} or {B}.
  this.addAbility(new WhiteManaAbility());
  this.addAbility(new BlackManaAbility());
}
origin: magefree/mage

public ConduitOfStorms(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{2}{R}");
  this.subtype.add(SubType.WEREWOLF);
  this.subtype.add(SubType.HORROR);
  this.power = new MageInt(2);
  this.toughness = new MageInt(3);
  this.transformable = true;
  this.secondSideCardClazz = ConduitOfEmrakul.class;
  // Whenever Conduit of Storms attacks, add {R} at the beginning of your next main phase this turn.
  Effect effect = new CreateDelayedTriggeredAbilityEffect(
      new AtTheBeginOfMainPhaseDelayedTriggeredAbility(
          new AddManaToManaPoolSourceControllerEffect(Mana.RedMana(1)), false, TargetController.YOU, AtTheBeginOfMainPhaseDelayedTriggeredAbility.PhaseSelection.NEXT_MAIN_THIS_TURN));
  effect.setText("add {R} at the beginning of your next main phase this turn");
  this.addAbility(new AttacksTriggeredAbility(effect, false));
  // {3}{R}{R}: Transform Conduit of Storms.
  this.addAbility(new TransformAbility());
  this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new TransformSourceEffect(true), new ManaCostsImpl("{3}{R}{R}")));
}
origin: magefree/mage

public CarnivalOfSouls(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{1}{B}");
  
  // Whenever a creature enters the battlefield, you lose 1 life and add {B}.
  Ability ability = new EntersBattlefieldAllTriggeredAbility(Zone.BATTLEFIELD, new LoseLifeSourceControllerEffect(1),
      new FilterCreaturePermanent("a creature"), false, SetTargetPointer.PERMANENT, null, false);
  Effect effect = new AddManaToManaPoolSourceControllerEffect(Mana.BlackMana(1));
  effect.setText("and add {B}.");
  ability.addEffect(effect);
  this.addAbility(ability);
}
origin: magefree/mage

public RattleclawMystic(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{1}{G}");
  this.subtype.add(SubType.HUMAN);
  this.subtype.add(SubType.SHAMAN);
  this.power = new MageInt(2);
  this.toughness = new MageInt(1);
  // {T}: Add {G}, {U}, or {R}.
  this.addAbility(new GreenManaAbility());
  this.addAbility(new BlueManaAbility());
  this.addAbility(new RedManaAbility());
  // Morph {2}
  this.addAbility(new MorphAbility(this, new ManaCostsImpl("{2}")));
  
  // When Rattleclaw Mystic is turned face up, add {G}{U}{R}.
  this.addAbility(new TurnedFaceUpSourceTriggeredAbility(new AddManaToManaPoolSourceControllerEffect(new Mana(1,1,1,0,0,0,0, 0))));
}
origin: magefree/mage

  @Override
  public boolean apply(Game game, Ability source) {
    Spell spell = (Spell) game.getStack().getStackObject(getTargetPointer().getFirst(game, source));
    Player controller = game.getPlayer(source.getControllerId());
    if (controller != null && spell != null) {
      game.getStack().counter(spell.getId(), source.getSourceId(), game);
      if (ClashEffect.getInstance().apply(game, source)) {
        Effect effect = new AddManaToManaPoolSourceControllerEffect(new Mana(0, 0, 0, 0, 0, 0, 0, spell.getConvertedManaCost()));
        AtTheBeginOfMainPhaseDelayedTriggeredAbility delayedAbility
            = new AtTheBeginOfMainPhaseDelayedTriggeredAbility(effect, true, TargetController.YOU, AtTheBeginOfMainPhaseDelayedTriggeredAbility.PhaseSelection.NEXT_MAIN);
        game.addDelayedTriggeredAbility(delayedAbility, source);
      }
      return true;
    }
    return false;
  }
}
mage.abilities.effects.manaAddManaToManaPoolSourceControllerEffect<init>

Popular methods of AddManaToManaPoolSourceControllerEffect

    Popular in Java

    • Creating JSON documents from java classes using gson
    • getSupportFragmentManager (FragmentActivity)
    • getContentResolver (Context)
    • getApplicationContext (Context)
    • Color (java.awt)
      The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
    • URLConnection (java.net)
      A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
    • Locale (java.util)
      Locale represents a language/country/variant combination. Locales are used to alter the presentatio
    • Vector (java.util)
      Vector is an implementation of List, backed by an array and synchronized. All optional operations in
    • Manifest (java.util.jar)
      The Manifest class is used to obtain attribute information for a JarFile and its entries.
    • Option (scala)
    • 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