Package mage.abilities.effects

Examples of mage.abilities.effects.Effects


    this.abilityType = abilityType;
    this.zone = zone;
    this.manaCosts = new ManaCostsImpl<ManaCost>();
    this.costs = new CostsImpl<Cost>();
    this.optionalCosts = new CostsImpl<Cost>();
    this.effects = new Effects();
    this.targets = new Targets();
    this.choices = new Choices();
  }
View Full Code Here


    return effects;
  }

  @Override
  public Effects getEffects(EffectType effectType) {
    Effects typedEffects = new Effects();
    for (Effect effect: effects) {
      if (effect.getEffectType() == effectType) {
        typedEffects.add(effect);
      }
    }
    return typedEffects;
  }
View Full Code Here

    LoyaltyAbility ability1 = new LoyaltyAbility(new SkipNextUntapTargetEffect(), 1);
    ability1.addTarget(new TargetPermanent());
    this.addAbility(ability1);

    Effects effects1 = new Effects();
    effects1.add(new DamageTargetEffect(3));
    effects1.add(new GainLifeEffect(3));
    LoyaltyAbility ability2 = new LoyaltyAbility(effects1, -2);
    ability2.addTarget(new TargetCreatureOrPlayer());
    this.addAbility(ability2);

    FilterPermanent filter = new FilterPermanent("lands");
View Full Code Here

    ability1.addTarget(new TargetLandPermanent(2));
    this.addAbility(ability1);

    this.addAbility(new LoyaltyAbility(new CreateTokenEffect(beastToken), -1));

    Effects effects1 = new Effects();
    effects1.add(new BoostControlledEffect(3, 3, Duration.EndOfTurn));
    effects1.add(new GainAbilityControlledEffect(TrampleAbility.getInstance(), Duration.EndOfTurn, FilterCreaturePermanent.getDefault()));
    this.addAbility(new LoyaltyAbility(effects1, -4));
  }
View Full Code Here

    this.color.setWhite(true);
    this.loyalty = new MageInt(4);

    this.addAbility(new LoyaltyAbility(new CreateTokenEffect(soldierToken), 1));

    Effects effects1 = new Effects();
    effects1.add(new BoostTargetEffect(3, 3, Duration.EndOfTurn));
    effects1.add(new GainAbilityTargetEffect(FlyingAbility.getInstance(), Duration.EndOfTurn));
    LoyaltyAbility ability1 = new LoyaltyAbility(effects1, 1);
    ability1.addTarget(new TargetCreaturePermanent());
    this.addAbility(ability1);

    this.addAbility(new LoyaltyAbility(new ElspethKnightErrantEffect(), -8));
View Full Code Here

    LoyaltyAbility ability2 = new LoyaltyAbility(new DamageXTargetEffect());
    ability2.addTarget(new TargetCreaturePermanent());
    this.addAbility(ability2);

    Effects effects1 = new Effects();
    effects1.add(new DamageTargetEffect(10));
    effects1.add(new DamageAllControlledTargetEffect(10, FilterCreaturePermanent.getDefault()));
    LoyaltyAbility ability3 = new LoyaltyAbility(effects1, -8);
    ability3.addTarget(new TargetPlayer());
    this.addAbility(ability3);
  }
View Full Code Here

    this.subtype.add("Sarkhan");
    this.color.setRed(true);
    this.color.setGreen(true);
    this.loyalty = new MageInt(4);

    Effects effects1 = new Effects();
    effects1.add(new BoostControlledEffect(1, 1, Duration.EndOfTurn));
    effects1.add(new GainAbilityControlledEffect(HasteAbility.getInstance(), Duration.EndOfTurn, FilterCreaturePermanent.getDefault()));
    this.addAbility(new LoyaltyAbility(effects1, 1));

    Effects effects2 = new Effects();
    effects2.add(new GainControlTargetEffect(Duration.EndOfTurn));
    effects2.add(new UntapTargetEffect());
    effects2.add(new GainAbilityTargetEffect(HasteAbility.getInstance(), Duration.EndOfTurn));

    LoyaltyAbility ability = new LoyaltyAbility(effects2, -2);
    ability.addTarget(new TargetCreaturePermanent());
    this.addAbility(ability);
View Full Code Here

    this.color.setWhite(true);
    this.loyalty = new MageInt(4);

    this.addAbility(new LoyaltyAbility(new GainLifeEffect(2), 1));

    Effects effects1 = new Effects();
    effects1.add(new AddPlusOneCountersControlledEffect(1));
    effects1.add(new GainAbilityControlledEffect(VigilanceAbility.getInstance(), Duration.EndOfTurn, FilterCreaturePermanent.getDefault()));
    this.addAbility(new LoyaltyAbility(effects1, -1));

    this.addAbility(new LoyaltyAbility(new CreateTokenEffect(new AvatarToken()), -6));

  }
View Full Code Here

    public Mode() {
        this.id = UUID.randomUUID();
        this.targets = new Targets();
        this.choices = new Choices();
        this.effects = new Effects();
    }
View Full Code Here

        // -1 : Sacrifice a creature. If you do, search your library for a creature card, reveal it, put it into your hand, then shuffle your library.
        LoyaltyAbility ability2 = new LoyaltyAbility(new GarrukTheVeilCursedEffect(), -1);
        this.addAbility(ability2);

        // -3 : Creatures you control gain trample and get +X/+X until end of turn, where X is the number of creature cards in your graveyard.
        Effects effects1 = new Effects();
        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

TOP

Related Classes of mage.abilities.effects.Effects

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.