Package mage.abilities.effects.common.continious

Examples of mage.abilities.effects.common.continious.GainAbilityControlledEffect


        this.toughness = new MageInt(6);
       
        // Trample
        this.addAbility(TrampleAbility.getInstance());
        // {5}: Permanents you control gain indestructible until end of turn.
        this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainAbilityControlledEffect(IndestructibleAbility.getInstance(), Duration.EndOfTurn), new GenericManaCost(5)));
        // {5}, Exile Soul of New Phyrexia from your graveyard: Permanents you control gain indestructible until end of turn.
        Ability ability = new SimpleActivatedAbility(Zone.GRAVEYARD, new GainAbilityControlledEffect(IndestructibleAbility.getInstance(), Duration.EndOfTurn), new GenericManaCost(5));
        ability.addCost(new ExileSourceFromGraveCost());
        this.addAbility(ability);
    }
View Full Code Here


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

        // Creatures you control have haste.
        this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new GainAbilityControlledEffect(HasteAbility.getInstance(), Duration.WhileOnBattlefield, filter)));
    }
View Full Code Here

        this.expansionSetCode = "SHM";

        this.color.setRed(true);

        // Creatures you control have double strike.
        this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new GainAbilityControlledEffect(DoubleStrikeAbility.getInstance(), Duration.WhileOnBattlefield, new FilterCreaturePermanent(), false)));
    }
View Full Code Here

        BoostControlledEffect effect = new BoostControlledEffect(new GarrukTheVeilCursedValue(), new GarrukTheVeilCursedValue(), Duration.EndOfTurn);
        // +X/+X should be counted only once
        effect.setLockedIn(true);
        effect.setRule("Creatures you control get +X/+X until end of turn, where X is the number of creature cards in your graveyard");
        effects1.add(effect);
        effects1.add(new GainAbilityControlledEffect(TrampleAbility.getInstance(), Duration.EndOfTurn, new FilterCreaturePermanent()));
        this.addAbility(new LoyaltyAbility(effects1, -3));
    }
View Full Code Here

        this.color.setWhite(true);

        // Untap all creatures you control.  They gain flying and double strike until end of turn.
        FilterCreaturePermanent filter = new FilterCreaturePermanent("creatures");
        this.getSpellAbility().addEffect(new UntapAllControllerEffect(filter));
        Effect effect = new GainAbilityControlledEffect(FlyingAbility.getInstance(), Duration.EndOfTurn, filter);
        effect.setText("They gain flying");
        this.getSpellAbility().addEffect(effect);
        effect = new GainAbilityControlledEffect(DoubleStrikeAbility.getInstance(), Duration.EndOfTurn, filter);
        effect.setText("and double strike until end of turn");
        this.getSpellAbility().addEffect(effect);
    }
View Full Code Here

        this.expansionSetCode = "KTK";

        this.color.setWhite(true);

        // Creatures you control have vigilance.
        this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new GainAbilityControlledEffect(VigilanceAbility.getInstance(), Duration.WhileOnBattlefield, new FilterControlledCreaturePermanent("Creatures"))));
       
        // Each creature you control can block an additional creature.
        this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new CanBlockAdditionalCreatureAllEffect(1, new FilterControlledCreaturePermanent("Each creature you control"), Duration.WhileOnBattlefield)));
    }
View Full Code Here

        this.color.setWhite(true);

        // Creatures you control get +2/+1 until end of turn.  White creatures you control also gain first strike until end of turn.
        this.getSpellAbility().addEffect(new BoostControlledEffect(2, 1, Duration.EndOfTurn));
        Effect effect = new GainAbilityControlledEffect(FirstStrikeAbility.getInstance(), Duration.EndOfTurn, filter);
        effect.setText("White creatures you control also gain first strike until end of turn");
        this.getSpellAbility().addEffect(effect);

    }
View Full Code Here

        this.color.setRed(true);

        // Vampire creatures you control get +2/+0 and gain first strike until end of turn.
        this.getSpellAbility().addEffect(new BoostControlledEffect(2, 0, Duration.EndOfTurn, vampires));
        this.getSpellAbility().addEffect(new GainAbilityControlledEffect(FirstStrikeAbility.getInstance(), Duration.EndOfTurn, vampires));
    }
View Full Code Here

        this.color.setWhite(true);

        // Creature tokens you control get +1/+1 and have vigilance.
        this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new BoostControlledEffect(1, 1, Duration.WhileOnBattlefield, filter)));
        this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new GainAbilityControlledEffect(VigilanceAbility.getInstance(), Duration.WhileOnBattlefield, filter)));

    }
View Full Code Here

        // - Creatures you control get +1/+1 and gain lifelink until end of turn.
        mode = new Mode();
        Effect effect = new BoostControlledEffect(1,1, Duration.EndOfTurn);
        effect.setText("Creatures you control get +1/+1");
        mode.getEffects().add(effect);
        effect = new GainAbilityControlledEffect(LifelinkAbility.getInstance(), Duration.EndOfTurn, new FilterControlledCreaturePermanent());
        effect.setText("and gain lifelink until end of turn");
        mode.getEffects().add(effect);
        this.getSpellAbility().addMode(mode);
    }
View Full Code Here

TOP

Related Classes of mage.abilities.effects.common.continious.GainAbilityControlledEffect

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.