Package mage.abilities.keyword

Examples of mage.abilities.keyword.KickerAbility


  public ConquerorsPledge(UUID ownerId) {
    super(ownerId, 8, "Conqueror's Pledge", Rarity.RARE, new CardType[]{CardType.SORCERY}, "{2}{W}{W}{W}");
    this.expansionSetCode = "ZEN";
    this.color.setWhite(true);
    this.getSpellAbility().addEffect(new CreateTokenEffect(new KorSoldierToken(), 6));
    KickerAbility ability = new KickerAbility(new CreateTokenEffect(new KorSoldierToken(), 12), true);
    ability.addManaCost(new GenericManaCost(6));
    this.addAbility(ability);
  }
View Full Code Here


    super(ownerId, 119, "Burst Lightning", Rarity.COMMON, new CardType[]{CardType.INSTANT}, "{R}");
    this.expansionSetCode = "ZEN";
    this.color.setRed(true);
    this.getSpellAbility().addTarget(new TargetCreatureOrPlayer());
    this.getSpellAbility().addEffect(new DamageTargetEffect(2));
    KickerAbility ability = new KickerAbility(new DamageTargetEffect(4), true);
    ability.addTarget(this.getSpellAbility().getTargets().get(0));
    ability.addManaCost(new GenericManaCost(4));
    this.addAbility(ability);
  }
View Full Code Here

    this.power = new MageInt(2);
    this.toughness = new MageInt(1);
    this.addAbility(HasteAbility.getInstance());
    Ability ability1 = new EntersBattlefieldTriggeredAbility(new DestroyTargetEffect());
    ability1.addTarget(new TargetNonBasicLandPermanent());
    KickerAbility ability2 = new KickerAbility(new GainAbilitySourceEffect(ability1, Duration.WhileOnBattlefield), false);
    ability2.addManaCost(new ColoredManaCost(ColoredManaSymbol.R));
    this.addAbility(ability2);

  }
View Full Code Here

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

    this.addAbility(UnblockableAbility.getInstance());
    Ability ability1 = new EntersBattlefieldTriggeredAbility(new AddPlusOneCountersSourceEffect(2));
    KickerAbility ability2 = new KickerAbility(new GainAbilitySourceEffect(ability1, Duration.WhileOnBattlefield), false);
    ability2.addManaCost(new GenericManaCost(3));
    this.addAbility(ability2);
  }
View Full Code Here

        this.expansionSetCode = "ZEN";

        this.color.setRed(true);

        // Kicker {3}{R} (You may pay an additional {3}{R} as you cast this spell.)
        this.addAbility(new KickerAbility("{3}{R}"));

        // Damage can't be prevented this turn. If Unstable Footing was kicked, it deals 5 damage to target player.
        this.getSpellAbility().addEffect(new UnstableFootingEffect());
        this.getSpellAbility().addEffect(new ConditionalOneShotEffect(
                new DamageTargetEffect(5),
View Full Code Here

        super(ownerId, 193, "Vines of Vastwood", Rarity.COMMON, new CardType[]{CardType.INSTANT}, "{G}");
        this.expansionSetCode = "ZEN";
        this.color.setGreen(true);

        // Kicker {G} (You may pay an additional {G} as you cast this spell.)
        this.addAbility(new KickerAbility("{G}"));

        // Target creature can't be the target of spells or abilities your opponents control this turn.
        this.getSpellAbility().addTarget(new TargetCreaturePermanent());
        this.getSpellAbility().addEffect(new CantBeTargetedTargetEffect(filter, Duration.EndOfTurn));
View Full Code Here

        this.expansionSetCode = "ZEN";

        this.color.setBlue(true);

        // Kicker {5}
        this.addAbility(new KickerAbility("{5}"));

        // Put a token that's a copy of target creature onto the battlefield. If Rite of Replication was kicked, put five of those tokens onto the battlefield instead.
        this.getSpellAbility().addTarget(new TargetCreaturePermanent());
        this.getSpellAbility().addEffect(new ConditionalOneShotEffect(new RiteOfReplicationEffect(5),
                new RiteOfReplicationEffect(1), KickedCondition.getInstance(),
View Full Code Here

        super(ownerId, 119, "Burst Lightning", Rarity.COMMON, new CardType[]{CardType.INSTANT}, "{R}");
        this.expansionSetCode = "ZEN";
        this.color.setRed(true);

        // Kicker {4} (You may pay an additional {4} as you cast this spell.)
        this.addAbility(new KickerAbility("{4}"));

        // Burst Lightning deals 2 damage to target creature or player. If Burst Lightning was kicked, it deals 4 damage to that creature or player instead.
        this.getSpellAbility().addTarget(new TargetCreatureOrPlayer());
        this.getSpellAbility().addEffect(new ConditionalOneShotEffect(new DamageTargetEffect(4),
                new DamageTargetEffect(2), KickedCondition.getInstance(), "{this} deals 2 damage to target creature or player. If {this} was kicked, it deals 4 damage to that creature or player instead"));
View Full Code Here

    @Override
    public boolean apply(Game game, Ability source) {
        Card card = game.getCard(source.getSourceId());
        if (card != null) {
            KickerAbility kickerAbility = null;
            for (Ability ability: card.getAbilities()) {
                if (ability instanceof KickerAbility) {
                    kickerAbility = (KickerAbility) ability;
                }
            }
            if (kickerAbility != null) {
                for (OptionalAdditionalCost cost: kickerAbility.getKickerCosts()) {
                    if (cost.getText(true).equals(kickerCostText)) {
                        return cost.isActivated();
                    }
                }
            }
View Full Code Here

        this.color.setRed(true);
        this.power = new MageInt(1);
        this.toughness = new MageInt(1);

        // Kicker {R} (You may pay an additional {R} as you cast this spell.)
        this.addAbility(new KickerAbility("{R}"));

        // When Goblin Bushwhacker enters the battlefield, if it was kicked, creatures you control get +1/+0 and gain haste until end of turn.
        EntersBattlefieldTriggeredAbility ability = new EntersBattlefieldTriggeredAbility(new BoostControlledEffect(1, 0, Duration.EndOfTurn), false);
        ability.addEffect(new GainAbilityControlledEffect(HasteAbility.getInstance(), Duration.EndOfTurn));
        this.addAbility(new ConditionalTriggeredAbility(ability, KickedCondition.getInstance(), "When {this} enters the battlefield, if it was kicked, creatures you control get +1/+0 and gain haste until end of turn."));
View Full Code Here

TOP

Related Classes of mage.abilities.keyword.KickerAbility

Copyright © 2018 www.massapicom. 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.