Пример #1
0
 public XiaoJi()
 {
     var trigger = new RelayTrigger(
         Run,
         TriggerCondition.OwnerIsSource
     ) { Priority = SkillPriority.XiaoJi };
     Triggers.Add(GameEvent.CardsLost, trigger);
     IsAutoInvoked = true;
 }
Пример #2
0
 public LiuLi()
 {
     var trigger = new RelayTrigger(
         OnPlayerIsCardTarget,
         TriggerCondition.OwnerIsTarget
     ) { Priority = SkillPriority.LiuLi};
     Triggers.Add(GameEvent.CardUsageTargetConfirming, trigger);
     IsAutoInvoked = null;
 }
Пример #3
0
 public XiaoJi2()
 {
     var trigger = new RelayTrigger(
         Run,
         TriggerCondition.OwnerIsSource
     ) { };
     Triggers.Add(GameEvent.CardsLost, trigger);
     IsAutoInvoked = null;
 }
Пример #4
0
 public XuanFeng()
 {
     var trigger = new RelayTrigger(
         Run,
         TriggerCondition.OwnerIsSource
     );
     Triggers.Add(GameEvent.CardsLost, trigger);
     IsAutoInvoked = true;
 }
Пример #5
0
 protected AutoNotifyUsagePassiveSkillTrigger(TriggerSkill skill, RelayTrigger innerTrigger, TriggerActionWithCardsAndPlayers execute, ICardUsageVerifier verifier)
 {
     AskForConfirmation = false;
     IsAutoNotify = true;
     Skill = skill;
     InnerTrigger = innerTrigger;
     Execute = execute;
     Verifier = verifier;
     base.Owner = InnerTrigger.Owner;
 }
Пример #6
0
 public AutoNotifyPassiveSkillTrigger(TriggerSkill skill, RelayTrigger innerTrigger)
 {
     AskForConfirmation = null;
     IsAutoNotify = true;
     Skill = skill;
     InnerTrigger = innerTrigger;
     base.Owner = InnerTrigger.Owner;
 }