示例#1
0
        public override Skill Clone(int value)
        {
            var tmp = new PoisonAttack
            {
                Description = Description,
                MaxValue    = MaxValue,
                Name        = Name,
                Value       = value
            };

            return(tmp);
        }
示例#2
0
        public override int Visit(PoisonAttack attack)
        {
            if (CardTarget != null)
            {
                CreatureCard targetCard = (CreatureCard)(GameManager.UserDict[CardTarget.Character].Player.GetCardFromId(CardTarget.CardId, Place.INNER) ?? GameManager.UserDict[CardTarget.Character].Player.GetCardFromId(CardTarget.CardId, Place.OUTER));
                if (targetCard.Health - attack.Power > 0)
                {
                    targetCard.PoisonDamage += attack.Power;
                    foreach (CharacterEnum c in GameManager.UserDict.Keys.ToList())
                    {
                        AddResponse(c, new CardsModifiedResponse(targetCard));
                    }
                }
            }

            return(attack.Power);
        }
示例#3
0
 public override int Visit(PoisonAttack attack)
 {
     return(0);
 }
示例#4
0
 public abstract int Visit(PoisonAttack attack);
示例#5
0
 public VenomJewel1()
 {
     Name  = "Venom Jewel 1";
     Skill = new PoisonAttack(1);
     Type  = SlotType.Small;
 }