コード例 #1
0
ファイル: SwiftfootBoots.java プロジェクト: jmagicdev/jmagic
 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));
 }
コード例 #2
0
    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."));
    }
コード例 #3
0
ファイル: RazorBoomerang.java プロジェクト: jmagicdev/jmagic
 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));
 }
コード例 #4
0
ファイル: PistonSledge.java プロジェクト: NorthFury/jmagic
 public PistonSledgeAbility1(GameState state) {
   super(state, "Equipped creature gets +3/+1.");
   this.addEffectPart(modifyPowerAndToughness(EquippedBy.instance(This.instance()), +3, +1));
 }
コード例 #5
0
    public ElbrustheBindingBladeAbility0(GameState state) {
      super(state, "Equipped creature gets +1/+0.");

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