Examples of ExileSourceEffect


Examples of mage.abilities.effects.common.ExileSourceEffect

}

class UnearthDelayedTriggeredAbility extends DelayedTriggeredAbility<UnearthDelayedTriggeredAbility> {

  public UnearthDelayedTriggeredAbility() {
    super(new ExileSourceEffect());
  }
View Full Code Here

Examples of mage.abilities.effects.common.ExileSourceEffect

    return false;
  }

  @Override
  public boolean apply(Game game, Ability source) {
    ExileSourceEffect effect = new ExileSourceEffect();
    return effect.apply(game, source);
  }
View Full Code Here

Examples of mage.abilities.effects.common.ExileSourceEffect

}

class UnearthDelayedTriggeredAbility extends DelayedTriggeredAbility {

    public UnearthDelayedTriggeredAbility() {
        super(new ExileSourceEffect());
    }
View Full Code Here

Examples of mage.abilities.effects.common.ExileSourceEffect

        return false;
    }

    @Override
    public boolean apply(Game game, Ability source) {
        ExileSourceEffect effect = new ExileSourceEffect();
        return effect.apply(game, source);
    }
View Full Code Here

Examples of mage.abilities.effects.common.ExileSourceEffect

}

class FlashbackTriggeredAbility extends DelayedTriggeredAbility {

    public FlashbackTriggeredAbility() {
        super(new ExileSourceEffect());
        usesStack = false;
    }
View Full Code Here

Examples of mage.abilities.effects.common.ExileSourceEffect

                    new AddCountersSourceEffect(CounterType.P1P1.createInstance(3)),
                    new InvertCondition(new CastFromHandCondition()), true,
                    "{this} enters the battlefield with three +1/+1 counters on it if you didn't cast it from your hand",""));

        // When Epochrasite dies, exile it with three time counters on it and it gains suspend.
        Ability ability = new DiesTriggeredAbility(new ExileSourceEffect());
        ability.addEffect(new AddCountersSourceEffect(CounterType.TIME.createInstance(3), new StaticValue(0), false, true));
        ability.addEffect(new GainAbilitySourceEffect(new SuspendAbility(3, null, this), Duration.OneUse, true));
        this.addAbility(ability);
    }
View Full Code Here

Examples of mage.abilities.effects.common.ExileSourceEffect

        if (controller != null && targetedCreature != null) {
            controller.moveCardToExileWithInfo(targetedCreature, null, null, source.getSourceId(), game, Zone.BATTLEFIELD);
            EmptyToken token = new EmptyToken();
            CardUtil.copyTo(token).from(targetedCreature);
            token.putOntoBattlefield(1, game, source.getSourceId(), source.getControllerId());
            token.addAbility(new AtEndOfTurnDelayedTriggeredAbility(new ExileSourceEffect()));
            return true;
        }
        return false;
    }
View Full Code Here

Examples of mage.abilities.effects.common.ExileSourceEffect

        // Soulbond
        this.addAbility(SoulbondAbility.getInstance());

        // As long as Deadeye Navigator is paired with another creature, each of those creatures has "{1}{U}: Exile this creature, then return it to the battlefield under your control."
        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new ExileSourceEffect(Zone.BATTLEFIELD), new ManaCostsImpl("{1}{U}"));
        ability.addEffect(new ReturnToBattlefieldUnderYourControlSourceEffect());
        this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new GainAbilityPairedEffect(ability, ruleText)));
    }
View Full Code Here

Examples of mage.abilities.effects.common.ExileSourceEffect

        this.power = new MageInt(8);
        this.toughness = new MageInt(8);

        this.addAbility(TrampleAbility.getInstance());
        // When Moldgraf Monstrosity dies, exile it, then return two creature cards at random from your graveyard to the battlefield.
        DiesTriggeredAbility ability = new DiesTriggeredAbility(new ExileSourceEffect());
        ability.addEffect(new MoldgrafMonstrosityEffect());
        this.addAbility(ability);
    }
View Full Code Here

Examples of mage.abilities.effects.common.ExileSourceEffect

        this.color.setBlack(true);

        // Whenever a nontoken creature is put into your graveyard from the battlefield, if Bridge from Below is in your graveyard, put a 2/2 black Zombie creature token onto the battlefield.
        this.addAbility(new BridgeFromBelowAbility(new CreateTokenEffect(new ZombieToken()), filter1));
        // When a creature is put into an opponent's graveyard from the battlefield, if Bridge from Below is in your graveyard, exile Bridge from Below.
        this.addAbility(new BridgeFromBelowAbility(new ExileSourceEffect(), filter2));
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.