Package mage.target.common

Examples of mage.target.common.TargetCreatureOrPlayer


        this.getSpellAbility().addEffect(new DamageTargetEffect(new ManacostVariableValue()));
        this.getSpellAbility().addEffect(new CantRegenerateTargetEffect(Duration.EndOfTurn, "That creature"));
        Effect effect = new DealtDamageToCreatureBySourceDies(this, Duration.EndOfTurn);
        effect.setText("If the creature would die this turn, exile it instead");
        this.getSpellAbility().addEffect(effect);
        this.getSpellAbility().addTarget(new TargetCreatureOrPlayer());
    }
View Full Code Here


        this.color.setBlack(true);

        // Spend only black mana on X.
        // Drain Life deals X damage to target creature or player. You gain life equal to the damage dealt, but not more life than the player's life total before Drain Life dealt damage or the creature's toughness.
        this.getSpellAbility().addTarget(new TargetCreatureOrPlayer());
        this.getSpellAbility().addEffect(new DrainLifeEffect());
        VariableCost variableCost = this.getSpellAbility().getManaCostsToPay().getVariableCosts().get(0);
        if (variableCost instanceof VariableManaCost) {
            ((VariableManaCost) variableCost).setFilter(filterBlack);
        }
View Full Code Here

        this.color.setRed(true);

        // Solar Blast deals 3 damage to target creature or player.
        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

        this.color.setRed(true);
        this.power = new MageInt(6);
        this.toughness = new MageInt(1);
        this.addAbility(HasteAbility.getInstance());
        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DamageTargetEffect(3), new TapSourceCost());
        ability.addTarget(new TargetCreatureOrPlayer());
        this.addAbility(ability);
    }
View Full Code Here

    public BeaconOfDestruction(UUID ownerId) {
        super(ownerId, 189, "Beacon of Destruction", Rarity.RARE, new CardType[]{CardType.INSTANT}, "{3}{R}{R}");
        this.expansionSetCode = "10E";
        this.color.setRed(true);
        this.getSpellAbility().addEffect(new DamageTargetEffect(5));
        this.getSpellAbility().addTarget(new TargetCreatureOrPlayer());
        this.getSpellAbility().addEffect(ShuffleSpellEffect.getInstance());
    }
View Full Code Here

        // Convoke
        this.addAbility(new ConvokeAbility());
       
        // Stoke the Flames deals 4 damage to target creature or player.
        this.getSpellAbility().addEffect(new DamageTargetEffect(4));
        this.getSpellAbility().addTarget(new TargetCreatureOrPlayer());
    }
View Full Code Here

        // {R}, {T}, Sacrifice a creature: Skirsdag Cultist deals 2 damage to target creature or player.
        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DamageTargetEffect(2), new ManaCostsImpl("{R}"));
        ability.addCost(new TapSourceCost());
        ability.addCost(new SacrificeTargetCost(new TargetControlledCreaturePermanent()));
        ability.addTarget(new TargetCreatureOrPlayer());
        this.addAbility(ability);
    }
View Full Code Here

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

        // {tap}: Orcish Artillery deals 2 damage to target creature or player and 3 damage to you.
        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DamageTargetEffect(2), new TapSourceCost());
        ability.addTarget(new TargetCreatureOrPlayer());
        ability.addEffect(new DamageControllerEffect(3));
        this.addAbility(ability);
    }
View Full Code Here

        // Flying
        this.addAbility(FlyingAbility.getInstance());
        // {2}{R}, Sacrifice Scaldkin: Scaldkin deals 2 damage to target creature or player.
        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DamageTargetEffect(2), new ManaCostsImpl("{2}{R}"));
        ability.addCost(new SacrificeSourceCost());
        ability.addTarget(new TargetCreatureOrPlayer());
        this.addAbility(ability);
    }
View Full Code Here

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

        // Constellation - Whenever Forgeborn Oreads or another enchantment enters the battlefield under your control, Forgeborn Oreads deals 1 damage to target creature or player.
        Ability ability = new ConstellationAbility(new DamageTargetEffect(1));
        ability.addTarget(new TargetCreatureOrPlayer());
        this.addAbility(ability);

    }
View Full Code Here

TOP

Related Classes of mage.target.common.TargetCreatureOrPlayer

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.