コード例 #1
0
ファイル: SunQuanLordOfWu.java プロジェクト: PwnedGalaxy/mage
  public SunQuanLordOfWu(UUID ownerId) {
    super(
        ownerId,
        56,
        "Sun Quan, Lord of Wu",
        Rarity.RARE,
        new CardType[] {CardType.CREATURE},
        "{4}{U}{U}");
    this.expansionSetCode = "PTK";
    this.supertype.add("Legendary");
    this.subtype.add("Human");
    this.subtype.add("Soldier");

    this.power = new MageInt(4);
    this.toughness = new MageInt(4);

    // Creatures you control have horsemanship.
    this.addAbility(
        new SimpleStaticAbility(
            Zone.BATTLEFIELD,
            new GainAbilityControlledEffect(
                HorsemanshipAbility.getInstance(),
                Duration.WhileOnBattlefield,
                new FilterControlledCreaturePermanent("Creatures you control"))));
  }
コード例 #2
0
ファイル: ShuCavalry.java プロジェクト: nigelzor/mage
  public ShuCavalry(UUID ownerId, CardSetInfo setInfo) {
    super(ownerId, setInfo, new CardType[] {CardType.CREATURE}, "{2}{W}");
    this.subtype.add("Human");
    this.subtype.add("Soldier");
    this.power = new MageInt(2);
    this.toughness = new MageInt(2);

    // Horsemanship
    this.addAbility(HorsemanshipAbility.getInstance());
  }
コード例 #3
0
  public LuBuMasterAtArms(UUID ownerId) {
    super(
        ownerId,
        108,
        "Lu Bu, Master-at-Arms",
        Rarity.RARE,
        new CardType[] {CardType.CREATURE},
        "{5}{R}");
    this.expansionSetCode = "ME3";
    this.supertype.add("Legendary");
    this.subtype.add("Human");
    this.subtype.add("Soldier");
    this.subtype.add("Warrior");
    this.power = new MageInt(4);
    this.toughness = new MageInt(3);

    // Haste; horsemanship
    this.addAbility(HasteAbility.getInstance());
    this.addAbility(HorsemanshipAbility.getInstance());
  }
コード例 #4
0
  public MaChaoWesternWarrior(UUID ownerId) {
    super(
        ownerId,
        116,
        "Ma Chao, Western Warrior",
        Rarity.RARE,
        new CardType[] {CardType.CREATURE},
        "{3}{R}{R}");
    this.expansionSetCode = "PTK";
    this.supertype.add("Legendary");
    this.subtype.add("Human");
    this.subtype.add("Soldier");
    this.subtype.add("Warrior");
    this.power = new MageInt(3);
    this.toughness = new MageInt(3);

    // Horsemanship
    this.addAbility(HorsemanshipAbility.getInstance());
    // Whenever Ma Chao, Western Warrior attacks alone, it can't be blocked this combat.
    Effect effect = new CantBeBlockedSourceEffect(Duration.EndOfCombat);
    effect.setText("it can't be blocked this combat");
    this.addAbility(new AttacksAloneTriggeredAbility(effect));
  }