예제 #1
0
파일: KuangFeng.cs 프로젝트: h1398123/sgs
 void Run(Player Owner, GameEvent gameEvent, GameEventArgs eventArgs)
 {
     ISkill skill;
     List<Card> cards;
     List<Player> players;
     if (Game.CurrentGame.UiProxies[Owner].AskForCardUsage(new CardUsagePrompt("KuangFeng"), new KuangFengVerifier(), out skill, out cards, out players))
     {
         NotifySkillUse(players);
         kuangfengTarget = players[0];
         kuangfengTarget[KuangFengMark] = 1;
         Game.CurrentGame.HandleCardDiscard(null, cards);
         Trigger tri = new KuangFengDamage();
         Game.CurrentGame.RegisterTrigger(GameEvent.DamageComputingStarted, tri);
         Game.CurrentGame.RegisterTrigger(GameEvent.PhaseBeginEvents[TurnPhase.Start], new KuangFengRemoval(Owner, tri));
     }
 }
예제 #2
0
        void Run(Player Owner, GameEvent gameEvent, GameEventArgs eventArgs)
        {
            ISkill        skill;
            List <Card>   cards;
            List <Player> players;

            if (Game.CurrentGame.UiProxies[Owner].AskForCardUsage(new CardUsagePrompt("KuangFeng"), new KuangFengVerifier(), out skill, out cards, out players))
            {
                NotifySkillUse(players);
                kuangfengTarget.Add(players[0]);
                kuangfengTarget[0][KuangFengMark] = 1;
                Game.CurrentGame.HandleCardDiscard(null, cards);
                Trigger tri = new KuangFengDamage();
                Game.CurrentGame.RegisterTrigger(GameEvent.DamageComputingStarted, tri);
                Game.CurrentGame.RegisterTrigger(GameEvent.PhaseBeginEvents[TurnPhase.Start], new KuangFengRemoval(Owner, tri, this));
            }
        }