コード例 #1
0
ファイル: GlintHawkIdol.java プロジェクト: jmagicdev/jmagic
 public GlintHawkIdolAbility1(GameState state) {
   super(
       state,
       "(W): Glint Hawk Idol becomes a 2/2 Bird artifact creature with flying until end of turn.");
   this.setManaCost(new ManaPool("(W)"));
   Animator animate = new Animator(ABILITY_SOURCE_OF_THIS, 2, 2);
   animate.addSubType(SubType.BIRD);
   animate.addType(Type.ARTIFACT);
   animate.addType(Type.CREATURE);
   animate.addAbility(org.rnd.jmagic.abilities.keywords.Flying.class);
   this.addEffect(
       createFloatingEffect(
           "Glint Hawk Idol becomes a 2/2 Bird artifact creature with flying until end of turn.",
           animate.getParts()));
 }
コード例 #2
0
ファイル: TreetopVillage.java プロジェクト: ranjan-rk/jmagic
    public AnimateTreetop(GameState state) {
      super(
          state,
          "(1)(G): Treetop Village becomes a 3/3 green Ape creature with trample until end of turn. It's still a land.");

      this.setManaCost(new ManaPool("1G"));

      Animator animator = new Animator(ABILITY_SOURCE_OF_THIS, 3, 3);
      animator.addColor(Color.GREEN);
      animator.addSubType(SubType.APE);
      animator.addAbility(org.rnd.jmagic.abilities.keywords.Trample.class);
      this.addEffect(
          createFloatingEffect(
              "Treetop Village becomes a 3/3 green Ape creature with trample until end of turn. It's still a land.",
              animator.getParts()));
    }
コード例 #3
0
ファイル: AzoriusKeyrune.java プロジェクト: ranjan-rk/jmagic
    public AzoriusKeyruneAbility1(GameState state) {
      super(
          state,
          "(W)(U): Azorius Keyrune becomes a 2/2 white and blue Bird artifact creature with flying until end of turn.");
      this.setManaCost(new ManaPool("(W)(U)"));

      Animator animator = new Animator(ABILITY_SOURCE_OF_THIS, 2, 2);
      animator.addColor(Color.WHITE);
      animator.addColor(Color.BLUE);
      animator.addSubType(SubType.BIRD);
      animator.addType(Type.ARTIFACT);
      animator.addAbility(org.rnd.jmagic.abilities.keywords.Flying.class);
      this.addEffect(
          createFloatingEffect(
              "Azorius Keyrune becomes a 2/2 white and blue Bird artifact creature with flying until end of turn.",
              animator.getParts()));
    }
コード例 #4
0
ファイル: OrzhovKeyrune.java プロジェクト: NorthFury/jmagic
    public OrzhovKeyruneAbility1(GameState state) {
      super(
          state,
          "(W)(B): Orzhov Keyrune becomes a 1/4 white and black Thrull artifact creature with lifelink until end of turn.");
      this.setManaCost(new ManaPool("(W)(B)"));

      Animator animate = new Animator(ABILITY_SOURCE_OF_THIS, 1, 4);
      animate.addColor(Color.WHITE);
      animate.addColor(Color.BLACK);
      animate.addSubType(SubType.THRULL);
      animate.addType(Type.ARTIFACT);
      animate.addAbility(Lifelink.class);
      this.addEffect(
          createFloatingEffect(
              "Orzhov Keyrune becomes a 1/4 white and black Thrull artifact creature with lifelink until end of turn.",
              animate.getParts()));
    }
コード例 #5
0
ファイル: GlintHawkIdol.java プロジェクト: jmagicdev/jmagic
 public GlintHawkIdolAbility0(GameState state) {
   super(
       state,
       "Whenever another artifact enters the battlefield under your control, you may have Glint Hawk Idol become a 2/2 Bird artifact creature with flying until end of turn.");
   this.addPattern(
       new SimpleZoneChangePattern(
           null,
           Battlefield.instance(),
           RelativeComplement.instance(HasType.instance(Type.ARTIFACT), ABILITY_SOURCE_OF_THIS),
           You.instance(),
           false));
   Animator animate = new Animator(ABILITY_SOURCE_OF_THIS, 2, 2);
   animate.addSubType(SubType.BIRD);
   animate.addType(Type.ARTIFACT);
   animate.addType(Type.CREATURE);
   animate.addAbility(org.rnd.jmagic.abilities.keywords.Flying.class);
   this.addEffect(
       youMay(
           createFloatingEffect(
               "Glint Hawk Idol becomes a 2/2 Bird artifact creature with flying until end of turn.",
               animate.getParts()),
           "You may have Glint Hawk Idol become a 2/2 Bird artifact creature with flying until end of turn."));
 }