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

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

Best Java code snippets using mage.abilities.effects.mana.AddManaToManaPoolSourceControllerEffect (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

Most used methods

  • <init>

Popular in Java

  • Reading from database using SQL prepared statement
  • runOnUiThread (Activity)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • findViewById (Activity)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • ImageIO (javax.imageio)
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • 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