Codota Logo
mage.abilities.effects.common
Code IndexAdd Codota to your IDE (free)

How to use mage.abilities.effects.common

Best Java code snippets using mage.abilities.effects.common (Showing top 20 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
LocalDateTime l =
  • Codota Iconnew LocalDateTime()
  • Codota IconLocalDateTime.now()
  • Codota IconDateTimeFormatter formatter;String text;formatter.parseLocalDateTime(text)
  • Smart code suggestions by Codota
}
origin: magefree/mage

public FlipCoinEffect(Effect effectWon, Effect effectLost, Outcome outcome) {
  super(outcome);
  addEffectWon(effectWon);
  addEffectLost(effectLost);
}
origin: magefree/mage

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

public TimeToFeedDiesTriggeredAbility(UUID watchedCreatureId, int zoneChangeCounter) {
  super(new GainLifeEffect(3), Duration.EndOfTurn, false);
  this.watchedCreatureId = watchedCreatureId;
  this.zoneChangeCounter = zoneChangeCounter;
}
origin: magefree/mage

public CreepingChillAbility() {
  super(
      Zone.LIBRARY, Zone.GRAVEYARD,
      new DoIfCostPaid(
          new DamagePlayersEffect(3, TargetController.OPPONENT),
          new ExileSourceFromGraveCost()
      ).addEffect(new GainLifeEffect(3)),
      "", true
  );
}
origin: magefree/mage

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

public DamageAllEffect(DynamicValue amount, FilterPermanent filter) {
  super(Outcome.Damage);
  this.amount = amount;
  this.filter = filter;
  setText();
}
origin: magefree/mage

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

public SacrificeOpponentsUnlessPayEffect(Cost cost, FilterPermanent filter, DynamicValue amount) {
  super(Outcome.Sacrifice);
  this.cost = cost;
  this.amount = amount;
  this.filter = filter;
  setText();
}

origin: magefree/mage

public RevealHandTargetEffect(TargetController targetController) {
  super(Outcome.Discard);
  this.targetController = targetController;
  this.staticText = getText();
}
origin: magefree/mage

public PreventAllDamageByAttachedEffect(Duration duration, String attachedDescription, boolean onlyCombat) {
  super(duration, Integer.MAX_VALUE, onlyCombat, false);
  this.attachedDescription = attachedDescription;
  staticText = setText();
}
origin: magefree/mage

public ExileFromZoneTargetEffect(Zone zone, UUID exileId, String exileName, FilterCard filter, int amount) {
  super(Outcome.Exile);
  this.zone = zone;
  this.filter = filter;
  this.exileId = exileId;
  this.exileName = exileName;
  this.amount = amount;
  setText();
}
origin: magefree/mage

public ChooseACardNameEffect(TypeOfName typeOfName) {
  super(Outcome.Detriment);
  this.typeOfName = typeOfName;
  staticText = setText();
}
origin: magefree/mage

public RevealCardsFromLibraryUntilEffect(FilterCard filter, Zone zoneToPutCard, Zone zoneToPutRest, boolean shuffleRestInto, boolean anyOrder) {
  super(Outcome.Benefit);
  this.filter = filter;
  this.zoneToPutCard = zoneToPutCard;
  this.zoneToPutRest = zoneToPutRest;
  this.shuffleRestInto = shuffleRestInto;
  this.anyOrder = anyOrder;
  setText();
}
origin: magefree/mage

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

public ExileAllEffect(FilterPermanent filter, UUID exileId, String exileZone) {
  super(Outcome.Exile);
  this.filter = filter;
  this.exileZone = exileZone;
  this.exileId = exileId;
  setText();
}
origin: magefree/mage

public SetPlayerLifeTargetEffect(DynamicValue amount) {
  super(Outcome.Neutral);
  this.amount = amount;
  this.staticText = setText();
}
origin: magefree/mage

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

@Override
public boolean replaceEvent(GameEvent event, Ability source, Game game) {
  preventDamageAction(event, source, game);
  this.used = true;
  return false;
}
origin: magefree/mage

public CantBeTargetedSourceEffect(FilterObject filterSource, Duration duration) {
  super(duration, Outcome.Benefit);
  this.filterSource = filterSource;
  setText();
}
origin: magefree/mage

public SacrificeOpponentsUnlessPayEffect(DynamicValue dynamicGenericMana, FilterPermanent filter, DynamicValue amount) {
  super(Outcome.Sacrifice);
  this.dynamicGenericMana = dynamicGenericMana;
  this.amount = amount;
  this.filter = filter;
  setText();
}

mage.abilities.effects.common

Most used classes

  • InfoEffect
  • DamageTargetEffect
  • AddCombatAndMainPhaseEffect
  • AddContinuousEffectToGame
  • AdditionalCombatPhaseEffect
  • AttacksIfAbleTargetPlayerSourceEffect,
  • BecomesMonarchSourceEffect,
  • BrainstormEffect,
  • CanBlockAsThoughtItHadShadowEffect,
  • CantActivateAbilitiesAttachedEffect,
  • CantAttackBlockTransformAttachedEffect,
  • CantBeCounteredControlledEffect,
  • CantBeCounteredSourceEffect,
  • CantBeRegeneratedSourceEffect,
  • CantBeRegeneratedTargetEffect,
  • CantBeTargetedAllEffect,
  • CantBeTargetedAttachedEffect,
  • CantBeTargetedCardsGraveyardsEffect,
  • CantBeTargetedSourceEffect
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now