Beispiel #1
0
 public SwiftfootBootsAbility0(GameState state) {
   super(state, "Equipped creature has hexproof and haste.");
   this.addEffectPart(
       addAbilityToObject(
           EquippedBy.instance(This.instance()),
           org.rnd.jmagic.abilities.keywords.Hexproof.class,
           org.rnd.jmagic.abilities.keywords.Haste.class));
 }
    public ElbrustheBindingBladeAbility1(GameState state) {
      super(
          state,
          "When equipped creature deals combat damage to a player, unattach Elbrus, the Binding Blade, then transform it.");

      this.addPattern(whenDealsCombatDamageToAPlayer(EquippedBy.instance(ABILITY_SOURCE_OF_THIS)));

      EventFactory factory =
          new EventFactory(EventType.UNATTACH, "Unattach Elbrus, the Binding Blade.");
      factory.parameters.put(EventType.Parameter.OBJECT, ABILITY_SOURCE_OF_THIS);
      this.addEffect(factory);

      this.addEffect(transform(ABILITY_SOURCE_OF_THIS, "Transform it."));
    }
Beispiel #3
0
 public EquippedCreatureCanThrowMe(GameState state) {
   super(
       state,
       "Equipped creature has \"(T), Unattach Razor Boomerang: Razor Boomerang deals 1 damage to target creature or player. Return Razor Boomerang to its owner's hand.\"");
   this.addEffectPart(addAbilityToObject(EquippedBy.instance(This.instance()), ThrowMe.class));
 }
Beispiel #4
0
 public PistonSledgeAbility1(GameState state) {
   super(state, "Equipped creature gets +3/+1.");
   this.addEffectPart(modifyPowerAndToughness(EquippedBy.instance(This.instance()), +3, +1));
 }
    public ElbrustheBindingBladeAbility0(GameState state) {
      super(state, "Equipped creature gets +1/+0.");

      this.addEffectPart(modifyPowerAndToughness(EquippedBy.instance(This.instance()), 1, 0));
    }