Package mage.abilities.dynamicvalue.common

Examples of mage.abilities.dynamicvalue.common.SourcePermanentPowerCount


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

        // Sacrifice Aerie Ouphes: Aerie Ouphes deals damage equal to its power to target creature with flying.
        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DamageTargetEffect(new SourcePermanentPowerCount()), new SacrificeSourceCost());
        ability.addTarget(new TargetCreaturePermanent(filter));
        this.addAbility(ability);

        // Persist
        this.addAbility(new PersistAbility());
View Full Code Here


        // Wither
        this.addAbility(WitherAbility.getInstance());
       
        // {2}{R}, {untap}: Hateflayer deals damage equal to its power to target creature or player.
        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DamageTargetEffect(new SourcePermanentPowerCount()), new ManaCostsImpl("{2}{R}"));
        ability.addCost(new UntapSourceCost());
        ability.addTarget(new TargetCreatureOrPlayer());
        this.addAbility(ability);
       
    }
View Full Code Here

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

        // {3}: Feral Animist gets +X/+0 until end of turn, where X is its power.
        this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD,
                new BoostSourceEffect(new SourcePermanentPowerCount(), new StaticValue(0), Duration.EndOfTurn, true),
                new GenericManaCost(3)));
    }
View Full Code Here

        // Unleash (You may have this creature enter the battlefield with a +1/+1 counter on it. It can't block as long as it has a +1/+1 counter on it.)
        this.addAbility(new UnleashAbility());
       
        // {2}{B}{R}, Sacrifice Hellhole Flailer: Hellhole Flailer deals damage equal to its power to target player.
        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DamageTargetEffect(new SourcePermanentPowerCount()), new ManaCostsImpl("{2}{B}{R}"));
        ability.addTarget(new TargetPlayer());
        ability.addCost(new SacrificeSourceCost());
        this.addAbility(ability);
       
    }
View Full Code Here

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

        // Whenever Wild Beastmaster attacks, each other creature you control gets +X/+X until end of turn, where X is Wild Beastmaster's power.
        SourcePermanentPowerCount creaturePower = new SourcePermanentPowerCount();
        Effect effect = new BoostControlledEffect(creaturePower, creaturePower, Duration.EndOfTurn, new FilterCreaturePermanent(),true, true);
        effect.setText(EFFECT_TEXT);
        this.addAbility(new AttacksTriggeredAbility(effect, false));
    }
View Full Code Here

TOP

Related Classes of mage.abilities.dynamicvalue.common.SourcePermanentPowerCount

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.