public override Skill Clone(int value) { var tmp = new PoisonAttack { Description = Description, MaxValue = MaxValue, Name = Name, Value = value }; return(tmp); }
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); }
public override int Visit(PoisonAttack attack) { return(0); }
public abstract int Visit(PoisonAttack attack);
public VenomJewel1() { Name = "Venom Jewel 1"; Skill = new PoisonAttack(1); Type = SlotType.Small; }