Esempio n. 1
0
        public BaZhen()
        {
            var trigger = new AutoNotifyPassiveSkillTrigger(
                this,
                (p, e, a) =>
            {
                foreach (var ac in Game.CurrentGame.Decks[p, DeckType.Equipment])
                {
                    if (ac.Type is Armor)
                    {
                        return(false);
                    }
                }
                return(a.Card.Type is Shan && Armor.ArmorIsValid(Owner, a.Targets[0], a.ReadonlyCard));
            },
                Run,
                TriggerCondition.OwnerIsSource
                )
            {
                IsAutoNotify = false
            };

            Triggers.Add(GameEvent.PlayerRequireCard, trigger);
            IsEnforced = true;
        }