Package mage.abilities.common

Examples of mage.abilities.common.CycleTriggeredAbility


        this.toughness = new MageInt(1);

        // Cycling {1}{R}
        this.addAbility(new CyclingAbility(new ManaCostsImpl("{1}{R}")));
        // When you cycle Gempalm Incinerator, you may have it deal X damage to target creature, where X is the number of Goblins on the battlefield.
        Ability ability = new CycleTriggeredAbility(new DamageTargetEffect(new PermanentsOnBattlefieldCount(filter)),true);
        ability.addTarget(new TargetCreaturePermanent());
        this.addAbility(ability);
    }
View Full Code Here


        this.getSpellAbility().addEffect(new DamageTargetEffect(3));
        this.getSpellAbility().addTarget(new TargetCreatureOrPlayer());
        // Cycling {1}{R}{R}
        this.addAbility(new CyclingAbility(new ManaCostsImpl("{1}{R}{R}")));
        // When you cycle Solar Blast, you may have it deal 1 damage to target creature or player.
        Ability ability = new CycleTriggeredAbility(new DamageTargetEffect(1), true);
        ability.addTarget(new TargetCreatureOrPlayer());
        this.addAbility(ability);
    }
View Full Code Here

        // All creatures gain fear until end of turn.
        this.getSpellAbility().addEffect(new GainAbilityAllEffect(FearAbility.getInstance(), Duration.EndOfTurn, new FilterCreaturePermanent("All creatures")));
        // Cycling {1}{B}
        this.addAbility(new CyclingAbility(new ManaCostsImpl("{1}{B}")));
        // When you cycle Dirge of Dread, you may have target creature gain fear until end of turn.
        Ability ability = new CycleTriggeredAbility(new GainAbilityTargetEffect(FearAbility.getInstance(), Duration.EndOfTurn), true);
        ability.addTarget(new TargetCreaturePermanent());
        this.addAbility(ability);
    }
View Full Code Here

        // Slice and Dice deals 4 damage to each creature.
        this.getSpellAbility().addEffect(new DamageAllEffect(4, new FilterCreaturePermanent()));
        // Cycling {2}{R}
        this.addAbility(new CyclingAbility(new ManaCostsImpl("{2}{R}")));
        // When you cycle Slice and Dice, you may have it deal 1 damage to each creature.
        this.addAbility(new CycleTriggeredAbility(new DamageAllEffect(1, new FilterCreaturePermanent()), true));

    }
View Full Code Here

        // You gain 6 life.
        this.getSpellAbility().addEffect(new GainLifeEffect(6));
        // Cycling {1}{W}
        this.addAbility(new CyclingAbility(new ManaCostsImpl("{1}{W}")));
        // When you cycle Renewed Faith, you may gain 2 life.
        this.addAbility(new CycleTriggeredAbility(new GainLifeEffect(2), true));
    }
View Full Code Here

        this.color.setWhite(true);
        this.power = new MageInt(2);
        this.toughness = new MageInt(4);

        // When you cycle Bant Sojourners or it dies, you may put a 1/1 white Soldier creature token onto the battlefield.
        Ability ability1 = new CycleTriggeredAbility(new CreateTokenEffect(new SoldierToken()), true);
        Ability ability2 = new DiesTriggeredAbility(new CreateTokenEffect(new SoldierToken()), true);
        this.addAbility(ability1);
        this.addAbility(ability2);
       
        // Cycling {2}{W}
View Full Code Here

        this.getSpellAbility().addEffect(new DamageTargetEffect(3));
        this.getSpellAbility().addTarget(new TargetCreatureOrPlayer());
        // Cycling {5}{B}{R}{G}
        this.addAbility(new CyclingAbility(new ManaCostsImpl("{5}{B}{R}{G}")));
        // When you cycle Resounding Thunder, it deals 6 damage to target creature or player.
        Ability ability = new CycleTriggeredAbility(new DamageTargetEffect(6));
        ability.addTarget(new TargetCreatureOrPlayer());
        this.addAbility(ability);
    }
View Full Code Here

        this.color.setWhite(true);
        this.power = new MageInt(2);
        this.toughness = new MageInt(3);

        // When you cycle Esper Sojourners or it dies, you may tap or untap target permanent.
        Ability ability1 = new CycleTriggeredAbility(new MayTapOrUntapTargetEffect());
        Ability ability2 = new DiesTriggeredAbility(new MayTapOrUntapTargetEffect());
        ability1.addTarget(new TargetPermanent());
        ability2.addTarget(new TargetPermanent());
        this.addAbility(ability1);
        this.addAbility(ability2);
       
        // Cycling {2}{U}
View Full Code Here

        this.getSpellAbility().addEffect(new DiscardTargetEffect(1, true));
        this.getSpellAbility().addTarget(new TargetPlayer());
        // Cycling {5}{U}{B}{R}
        this.addAbility(new CyclingAbility(new ManaCostsImpl("{5}{U}{B}{R}")));
        // When you cycle Resounding Scream, target player discards two cards at random.
        Ability ability = new CycleTriggeredAbility(new DiscardTargetEffect(2, true));
        ability.addTarget(new TargetPlayer());
        this.addAbility(ability);
    }
View Full Code Here

        this.getSpellAbility().addEffect(new BoostTargetEffect(3, 3, Duration.EndOfTurn));
        this.getSpellAbility().addTarget(new TargetCreaturePermanent());
        // Cycling {5}{R}{G}{W}
        this.addAbility(new CyclingAbility(new ManaCostsImpl("{5}{R}{G}{W}")));
        // When you cycle Resounding Roar, target creature gets +6/+6 until end of turn.
        Ability ability = new CycleTriggeredAbility(new BoostTargetEffect(6, 6, Duration.EndOfTurn));
        ability.addTarget(new TargetCreaturePermanent());
        this.addAbility(ability);
    }
View Full Code Here

TOP

Related Classes of mage.abilities.common.CycleTriggeredAbility

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.