congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
mage.abilities.common
Code IndexAdd Tabnine to your IDE (free)

How to use mage.abilities.common

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

origin: magefree/mage

LicidSpecialAction(ManaCost cost, UUID messageId, String licidName) {
  super();
  this.addCost(cost);
  this.addEffect(new LicidSpecialActionEffect(messageId, this.getId(), licidName));
}
origin: magefree/mage

public LegendarySpellAbility() {
  super(Zone.ALL, new LegendarySpellAbilityCheckEffect());
  this.setRuleAtTheTop(true);
}
origin: magefree/mage

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

public TurnFaceUpAbility(Costs<Cost> costs, boolean megamorph) {
  super(Zone.BATTLEFIELD);
  this.addEffect(new TurnFaceUpEffect(megamorph));
  for (Cost cost : costs) {
    if (cost instanceof ManaCost) {
      this.addManaCost((ManaCost) cost);
    } else {
      this.addCost(cost);
    }
  }
  this.usesStack = false;
  this.abilityType = AbilityType.SPECIAL_ACTION;
  this.setRuleVisible(false); // will be made visible only to controller in CardView
}
origin: magefree/mage

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

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

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

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

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

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

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

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

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

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

public BecomesFaceDownCreatureEffect(Costs<Cost> turnFaceUpCosts, MageObjectReference objectReference, Duration duration, FaceDownType faceDownType) {
  super(duration, Outcome.BecomeCreature);
  this.objectReference = objectReference;
  this.zoneChangeCounter = Integer.MIN_VALUE;
  if (turnFaceUpCosts != null) {
    this.turnFaceUpAbility = new TurnFaceUpAbility(turnFaceUpCosts, faceDownType == FaceDownType.MEGAMORPHED);
  }
  staticText = "{this} becomes a 2/2 face-down creature, with no text, no name, no subtypes, and no mana cost";
  foundPermanent = false;
  this.faceDownType = faceDownType;
}
origin: magefree/mage

  @Override
  public String getRule() {
    return "When Flesh Carver dies, " + super.getRule();
  }
}
origin: magefree/mage

  private String generateZoneString() {
    switch (getZone()) {
      case GRAVEYARD:
        return "if {this} is in your graveyard, ";
    }
    return "";
  }
}
origin: magefree/mage

  private String generateZoneString() {
    switch (getZone()) {
      case GRAVEYARD:
        return "if {this} is in your graveyard, ";
    }
    return "";
  }
}
origin: magefree/mage

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

public MCTSPlayer(final MCTSPlayer player) {
  super(player);
  this.pass = player.pass.copy();
  this.nextAction = player.nextAction;
}
mage.abilities.common

Most used classes

  • PassAbility
  • SimpleStaticAbility
  • ActivateAsSorceryActivatedAbility
  • ActivateIfConditionActivatedAbility
  • ActivateOnlyByOpponentActivatedAbility
  • AsEntersBattlefieldAbility,
  • AttachableToRestrictedAbility,
  • AttackedByCreatureTriggeredAbility,
  • AttacksAllTriggeredAbility,
  • AttacksAloneTriggeredAbility,
  • AttacksAndIsNotBlockedTriggeredAbility,
  • AttacksAttachedTriggeredAbility,
  • AttacksCreatureYouControlTriggeredAbility,
  • AttacksEachCombatStaticAbility,
  • AttacksFirstTimeTriggeredAbility,
  • AttacksOrBlocksEnchantedTriggeredAbility,
  • AttacksOrBlocksTriggeredAbility,
  • AttacksTriggeredAbility,
  • AttacksWithCreaturesTriggeredAbility
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