Package mage.abilities.dynamicvalue.common

Examples of mage.abilities.dynamicvalue.common.ManacostVariableValue


        this.expansionSetCode = "BOK";

        this.color.setGreen(true);

        // Reveal the top X cards of your library. Put all creature cards revealed this way into your hand and the rest on the bottom of your library in any order.
        this.getSpellAbility().addEffect(new RevealLibraryPutIntoHandEffect(new ManacostVariableValue(), new FilterCreatureCard("all creature cards"),true));
    }
View Full Code Here


        Player controller = game.getPlayer(source.getControllerId());
        if (controller == null) {
            return false;
        }

        int amount = (new ManacostVariableValue()).calculate(game, source, this);
        if (amount > 0) {
            LinkedList<Permanent> sacrifices = new LinkedList<Permanent>();
            HashMap<UUID, Integer> lifePaidAmounts = new HashMap<UUID, Integer>();

            FilterCreaturePermanent filter = new FilterCreaturePermanent();
View Full Code Here

        this.expansionSetCode = "AVR";

        this.color.setBlack(true);

        // Target creature gets -X/-X until end of turn.
        DynamicValue x = new SignInversionDynamicValue(new ManacostVariableValue());
        this.getSpellAbility().addEffect(new BoostTargetEffect(x, x, Duration.EndOfTurn, true));
        this.getSpellAbility().addTarget(new TargetCreaturePermanent());
    }
View Full Code Here

        // Delve
        this.addAbility(new DelveAbility());

        // Counter target spell unless its controller pays {X}.
        this.getSpellAbility().addEffect(new CounterUnlessPaysEffect(new ManacostVariableValue()));
        this.getSpellAbility().addTarget(new TargetSpell());
    }
View Full Code Here

        this.expansionSetCode = "ISD";

        this.color.setRed(true);

        // Devil's Play deals X damage to target creature or player.
        this.getSpellAbility().addEffect(new DamageTargetEffect(new ManacostVariableValue()));
        this.getSpellAbility().addTarget(new TargetCreatureOrPlayer());
        // Flashback {X}{R}{R}{R}
        this.addAbility(new FlashbackAbility(new ManaCostsImpl("{X}{R}{R}{R}"), TimingRule.SORCERY));
    }
View Full Code Here

        // Delve
        this.addAbility(new DelveAbility());
       
        // Put X 2/2 black Zombie creature tokens onto the battlefield tapped.
        this.getSpellAbility().addEffect(new CreateTokenEffect(new ZombieToken(), new ManacostVariableValue(), true, false));
    }
View Full Code Here

        this.color.setRed(true);
        this.color.setBlue(true);

        // Counter target spell unless its controller pays {X}.  Mindswipe deals X damage to that spell's controller.
        Effect effect = new CounterUnlessPaysEffect(new ManacostVariableValue());
        effect.setText("Counter target spell unless its controller pays {X}.");
        this.getSpellAbility().addEffect(effect);
        this.getSpellAbility().addTarget(new TargetSpell());
        this.getSpellAbility().addEffect(new MindswipeEffect());
    }
View Full Code Here

            }
            if (object != null && object instanceof Spell) {
                Spell spell = (Spell) object;
                Player spellController = game.getPlayer(spell.getControllerId());
                if (spellController != null) {
                    int damage = new ManacostVariableValue().calculate(game, source, this);
                    spellController.damage(damage, source.getSourceId(), game, false, true);
                }
                return true;
            }
        }
View Full Code Here

        // Delve
        this.addAbility(new DelveAbility());
        // Flying
        this.addAbility(FlyingAbility.getInstance());
        // {X}, {T}, Exile X cards from your graveyard: Target creature gets -X/-X until end of turn.
        DynamicValue xValue = new SignInversionDynamicValue(new ManacostVariableValue());
        Effect effect = new BoostTargetEffect(xValue,xValue,Duration.EndOfTurn);
        effect.setText("Target creature gets -X/-X until end of turn");
        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, effect, new ManaCostsImpl("{X}"));
        ability.addCost(new TapSourceCost());
        ability.addTarget(new TargetCreaturePermanent());
View Full Code Here

        this.expansionSetCode = "LEA";

        this.color.setBlack(true);

        // Target player discards X cards at random.
        this.getSpellAbility().addEffect(new DiscardTargetEffect(new ManacostVariableValue(), true));
        this.getSpellAbility().addTarget(new TargetPlayer());
    }
View Full Code Here

TOP

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

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.