挑衅-出牌阶段,你可以指定一名你在其攻击范围内的角色,该角色选择一项:对你使用一张【杀】,或令你弃置其一张牌,每阶段限一次。
Наследование: Sanguosha.Core.Skills.AutoVerifiedActiveSkill
Пример #1
0
 public BaoBian()
 {
     bbPaoXiao = null;
     bbShenSu = null;
     bbTiaoXin = null;
     var trigger = new AutoNotifyPassiveSkillTrigger(
         this,
             (p, e, a) => { Refresh(p); },
             TriggerCondition.OwnerIsTarget
         ) { IsAutoNotify = false };
     Triggers.Add(GameEvent.AfterHealthChanged, trigger);
     IsEnforced = true;
     var trigger2 = new AutoNotifyPassiveSkillTrigger(
         this,
             (p, e, a) => { Refresh(p); },
             TriggerCondition.OwnerIsSource
         ) { IsAutoNotify = false };
     Triggers.Add(GameEvent.PlayerGameStartAction, trigger2);
 }
Пример #2
0
 void Refresh(Player p)
 {
     if (p.Health <= 3)
     {
         if (bbTiaoXin == null)
         {
             bbTiaoXin = new TiaoXin();
             Game.CurrentGame.PlayerAcquireAdditionalSkill(p, bbTiaoXin, HeroTag);
         }
     }
     else
     {
         if (bbTiaoXin != null)
         {
             Game.CurrentGame.PlayerLoseAdditionalSkill(p, bbTiaoXin);
             bbTiaoXin = null;
         }
     }
     if (p.Health <= 2)
     {
         if (bbPaoXiao == null)
         {
             bbPaoXiao = new PaoXiao();
             Game.CurrentGame.PlayerAcquireAdditionalSkill(p, bbPaoXiao, HeroTag);
         }
     }
     else
     {
         if (bbPaoXiao != null)
         {
             Game.CurrentGame.PlayerLoseAdditionalSkill(p, bbPaoXiao);
             bbPaoXiao = null;
         }
     }
     if (p.Health == 1)
     {
         if (bbShenSu == null)
         {
             bbShenSu = new ShenSu();
             Game.CurrentGame.PlayerAcquireAdditionalSkill(p, bbShenSu, HeroTag);
         }
     }
     else
     {
         if (bbShenSu != null)
         {
             Game.CurrentGame.PlayerLoseAdditionalSkill(p, bbShenSu);
             bbShenSu = null;
         }
     }
 }