Exemple #1
0
 public override void execute(TouhouCardEngine.CardEngine engine)
 {
     //玩家的最大能量加1但是不超过10,充满玩家的能量。
     engine.setProp("currentPlayer", player);
     engine.setMaxGem(player, player.getProp <int>("maxGem") + 1);
     engine.setGem(player, player.getProp <int>("maxGem"));
     //抽一张牌
     engine.draw(player);
     //使随从可以攻击
     foreach (Card card in player["Field"])
     {
         card.setProp("isReady", true);
         card.setProp("attackTimes", 0);
     }
     //开始烧绳倒计时
     //Task.Run(() =>
     //{
     //    Thread.Sleep(20000);
     //    //开始烧绳
     //    engine.doEvent(new CountDownEvent(player, 10));
     //});
 }