コード例 #1
0
ファイル: BlasphemousAct.java プロジェクト: NorthFury/jmagic
    public BlasphemousActAbility0(GameState state) {
      super(state, "Blasphemous Act costs (1) less to cast for each creature on the battlefield.");

      ContinuousEffect.Part part =
          new ContinuousEffect.Part(ContinuousEffectType.MANA_COST_REDUCTION);
      part.parameters.put(ContinuousEffectType.Parameter.OBJECT, This.instance());
      part.parameters.put(
          ContinuousEffectType.Parameter.NUMBER, Count.instance(CreaturePermanents.instance()));
      part.parameters.put(
          ContinuousEffectType.Parameter.COST, Identity.instance(new ManaPool("(1)")));
      this.addEffectPart(part);

      // doesn't union with this.canApply since it completely changes when
      // it applies
      this.canApply = NonEmpty.instance();
    }
コード例 #2
0
    public ResoundingTrigger(GameState state) {
      super(
          state,
          "When you cycle Resounding Thunder, it deals 6 damage to target creature or player.");

      this.canTrigger = NonEmpty.instance();

      this.addPattern(whenYouCycleThis());

      Target target = this.addTarget(CREATURES_AND_PLAYERS, "target creature or player");

      this.addEffect(
          permanentDealDamage(
              6,
              targetedBy(target),
              "Resounding Thunder deals 6 damage to target creature or player."));
    }