Exemplo n.º 1
0
    public AgoraphobiaAbility1(GameState state) {
      super(state, "Enchanted creature gets -5/-0.");

      SetGenerator enchanted = EnchantedBy.instance(This.instance());

      this.addEffectPart(modifyPowerAndToughness(enchanted, -5, -0));
    }
Exemplo n.º 2
0
 public GhostlyPossessionAbility1(GameState state) {
   super(state, "Enchanted creature has flying.");
   this.addEffectPart(
       addAbilityToObject(
           EnchantedBy.instance(This.instance()),
           org.rnd.jmagic.abilities.keywords.Flying.class));
 }
Exemplo n.º 3
0
    public SkeletalGrimaceAbility1(GameState state) {
      super(state, "Enchanted creature gets +1/+1 and has \"(B): Regenerate this creature.\"");

      SetGenerator enchantedCreature = EnchantedBy.instance(This.instance());

      this.addEffectPart(modifyPowerAndToughness(enchantedCreature, +1, +1));
      this.addEffectPart(addAbilityToObject(enchantedCreature, RegenerateB.class));
    }
Exemplo n.º 4
0
    public CommandersAuthorityAbility1(GameState state) {
      super(
          state,
          "Enchanted creature has \"At the beginning of your upkeep, put a 1/1 white Human creature token onto the battlefield.\"");

      this.addEffectPart(
          addAbilityToObject(EnchantedBy.instance(This.instance()), BabyBoomers.class));
    }
Exemplo n.º 5
0
    public SpiritAwayAbility2(GameState state) {
      super(state, "Enchanted creature gets +2/+2 and has flying.");

      SetGenerator enchantedCreature = EnchantedBy.instance(This.instance());
      this.addEffectPart(modifyPowerAndToughness(enchantedCreature, +2, +2));
      this.addEffectPart(
          addAbilityToObject(enchantedCreature, org.rnd.jmagic.abilities.keywords.Flying.class));
    }
Exemplo n.º 6
0
    public Spread(GameState state) {
      super(state, "Enchanted land is an Island.");

      SetGenerator enchantedLand = EnchantedBy.instance(This.instance());

      ContinuousEffect.Part part = new ContinuousEffect.Part(ContinuousEffectType.SET_TYPES);
      part.parameters.put(ContinuousEffectType.Parameter.OBJECT, enchantedLand);
      part.parameters.put(ContinuousEffectType.Parameter.TYPE, Identity.instance(SubType.ISLAND));
      this.addEffectPart(part);
    }
Exemplo n.º 7
0
    public SpiritAwayAbility1(GameState state) {
      super(state, "You control enchanted creature.");

      SetGenerator enchantedCreature = EnchantedBy.instance(This.instance());

      ContinuousEffect.Part part = new ContinuousEffect.Part(ContinuousEffectType.CHANGE_CONTROL);
      part.parameters.put(ContinuousEffectType.Parameter.OBJECT, enchantedCreature);
      part.parameters.put(ContinuousEffectType.Parameter.PLAYER, You.instance());
      this.addEffectPart(part);
    }
Exemplo n.º 8
0
 public GhostlyPossessionAbility2(GameState state) {
   super(
       state,
       "Prevent all combat damage that would be dealt to and dealt by enchanted creature.");
   SetGenerator enchantedCreature = EnchantedBy.instance(This.instance());
   ReplacementEffect replacement =
       new org.rnd.jmagic.abilities.PreventCombatDamageDealtToOrBy(
           state.game, enchantedCreature, "enchanted creature");
   this.addEffectPart(replacementEffectPart(replacement));
 }
Exemplo n.º 9
0
    public BearPump(GameState state) {
      super(
          state,
          "Enchanted creature gets +2/+2 and has \"Whenever this creature attacks, untap all lands you control.\"");

      SetGenerator enchantedCreature = EnchantedBy.instance(This.instance());

      this.addEffectPart(modifyPowerAndToughness(enchantedCreature, +2, +2));

      this.addEffectPart(addAbilityToObject(enchantedCreature, UntapLands.class));
    }
Exemplo n.º 10
0
    public MadcapSkillsAbility1(GameState state) {
      super(
          state,
          "Enchanted creature gets +3/+0 and can't be blocked except by two or more creatures.");

      SetGenerator enchantedCreature = EnchantedBy.instance(This.instance());

      this.addEffectPart(modifyPowerAndToughness(enchantedCreature, +3, +0));

      SetGenerator restriction =
          Intersect.instance(
              Count.instance(Blocking.instance(enchantedCreature)), numberGenerator(1));
      ContinuousEffect.Part part =
          new ContinuousEffect.Part(ContinuousEffectType.BLOCKING_RESTRICTION);
      part.parameters.put(
          ContinuousEffectType.Parameter.RESTRICTION, Identity.instance(restriction));
      this.addEffectPart(part);
    }
Exemplo n.º 11
0
  public KnightlyValor(GameState state) {
    super(state);

    // Enchant creature
    this.addAbility(new Enchant.Creature(state));

    // When Knightly Valor enters the battlefield, put a 2/2 white Knight
    // creature token with vigilance onto the battlefield.
    this.addAbility(new KnightlyValorAbility1(state));

    // Enchanted creature gets +2/+2 and has vigilance.
    this.addAbility(
        new StaticPTChange(
            state,
            EnchantedBy.instance(This.instance()),
            "Enchanted creature",
            +2,
            +2,
            Vigilance.class,
            false));
  }