Example #1
0
        private CombatantCard GetDamagedTarget(CombatantCard rawTarget)
        {
            CombatantCardBuilder target = castTarget.AsMutable();

            target =

                return(target.AsReadonly());
        }
Example #2
0
        public override ReadOnlyCollection <Card> GetApplied(ReadOnlyCollection <Card> queue)
        {
            List <Card> ret = queue.ToList();

            ret.RemoveAt(0);
            for (int i = 0; i < ret.Count; i++)
            {
                if (ret[i].Faction == Faction)
                {
                    CombatantCard combatant = ret[i] as CombatantCard;
                    if (combatant != null)
                    {
                        CombatantCardBuilder mutable = combatant.AsMutable();
                        mutable.Attack += Skill;
                        ret[i]          = mutable.AsReadonly();
                    }
                }
            }
            ret.Add(this);
            return(ret.AsReadOnly());
        }