コード例 #1
0
 private static void Paladin(IDictionary <string, CardDef> cards)
 {
     // ---------------------------------------- SPELL - PALADIN
     // [FP1_020] Avenge - COST:1
     // - Set: naxx, Rarity: common
     // --------------------------------------------------------
     // Text: <b>Secret:</b> When one of your minions dies, give a random friendly minion +3/+2.
     // --------------------------------------------------------
     // GameTag:
     // - SECRET = 1
     // --------------------------------------------------------
     cards.Add("FP1_020", new CardDef(new Power
     {
         InfoCardId = "FP1_020e",
         Trigger    = new Trigger(TriggerType.DEATH)
         {
             TriggerSource = TriggerSource.FRIENDLY,
             SingleTask    = ComplexTask.Create(
                 new ConditionTask(EntityType.SOURCE, SelfCondition.IsBoardCount(0)),
                 new FlagTask(false, ComplexTask.Secret(
                                  new RandomTask(1, EntityType.MINIONS),
                                  new AddEnchantmentTask("FP1_020e", EntityType.STACK))))
         }
     }));
 }