congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
BeginningOfPostCombatMainTriggeredAbility
Code IndexAdd Tabnine to your IDE (free)

How to use
BeginningOfPostCombatMainTriggeredAbility
in
mage.abilities.common

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

origin: magefree/mage

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

@Override
public String getRule() {
  switch (targetController) {
    case YOU:
      return "At the beginning of your postcombat main phase, " + generateZoneString() + getEffects().getText(modes.getMode());
    case OPPONENT:
      return "At the beginning of each opponent's postcombat main phase, " + generateZoneString() + getEffects().getText(modes.getMode());
    case ANY:
      return "At the beginning of each player's postcombat main phase, " + generateZoneString() + getEffects().getText(modes.getMode());
  }
  return "";
}
origin: magefree/mage

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

  boolean yours = event.getPlayerId().equals(this.controllerId);
  if (yours && setTargetPointer) {
    if (getTargets().isEmpty()) {
      for (Effect effect : this.getEffects()) {
        effect.setTargetPointer(new FixedTarget(event.getPlayerId()));
  if (game.getPlayer(this.controllerId).hasOpponent(event.getPlayerId(), game)) {
    if (setTargetPointer) {
      for (Effect effect : this.getEffects()) {
        effect.setTargetPointer(new FixedTarget(event.getPlayerId()));
case ANY:
  if (setTargetPointer) {
    for (Effect effect : this.getEffects()) {
      effect.setTargetPointer(new FixedTarget(event.getPlayerId()));
origin: magefree/mage

public NehebTheEternal(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{3}{R}{R}");
  addSuperType(SuperType.LEGENDARY);
  this.subtype.add(SubType.ZOMBIE);
  this.subtype.add(SubType.MINOTAUR);
  this.subtype.add(SubType.WARRIOR);
  this.power = new MageInt(4);
  this.toughness = new MageInt(6);
  // Afflict 3
  addAbility(new AfflictAbility(3));
  // At the beginning of your postcombat main phase, add {R} for each 1 life your opponents have lost this turn.
  this.addAbility(new BeginningOfPostCombatMainTriggeredAbility(new NehebTheEternalManaEffect(), TargetController.YOU, false));
}
origin: magefree/mage

public TymnaTheWeaver(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{W}{B}");
  this.addSuperType(SuperType.LEGENDARY);
  this.subtype.add(SubType.HUMAN);
  this.subtype.add(SubType.CLERIC);
  this.power = new MageInt(2);
  this.toughness = new MageInt(2);
  // Lifelink
  this.addAbility(LifelinkAbility.getInstance());
  // At the beginning of your postcombat main phase, you may pay X life, where X is the number of opponents that were dealt combat damage this turn. If you do, draw X cards.
  this.addAbility(new BeginningOfPostCombatMainTriggeredAbility(new TymnaTheWeaverEffect(), TargetController.YOU, true), new TymnaTheWeaverWatcher());
  // Partner
  this.addAbility(PartnerAbility.getInstance());
}
mage.abilities.commonBeginningOfPostCombatMainTriggeredAbility

Most used methods

  • <init>
  • generateZoneString
  • getEffects
  • getTargets
  • getZone

Popular in Java

  • Making http post requests using okhttp
  • setRequestProperty (URLConnection)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getSharedPreferences (Context)
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • JLabel (javax.swing)
  • 21 Best Atom Packages for 2021
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now