public override int Visit(DamagePDToAllCreaturesOfTargetPlayerSpellAbility spellAbility) { if (Target is PlayerTarget && Target.Character != Owner) { return(0); } return(-1); }
public override int Visit(DamagePDToAllCreaturesOfTargetPlayerSpellAbility spell) { // Handle Card targets List <CreatureCard> modCards = new List <CreatureCard>(); foreach (PlayerTarget t in PlayerTargets) { foreach (CreatureCard card in GameManager.UserDict[t.Character].Player.Inner) { card.Health -= spell.numPd; if (card.Health > 0) { card.PoisonDamage += spell.numPd; } modCards.Add(card); } foreach (CreatureCard card in GameManager.UserDict[t.Character].Player.Outer) { card.Health -= spell.numPd; if (card.Health > 0) { card.PoisonDamage += spell.numPd; } modCards.Add(card); } } // Prepare responses foreach (CharacterEnum ch in GameManager.UserDict.Keys.ToList()) { if (modCards.Any()) { AddResponse(ch, new CardsModifiedResponse(modCards)); } } return(0); }
public override int Visit(DamagePDToAllCreaturesOfTargetPlayerSpellAbility ability) { throw new NotImplementedException(); }
public abstract int Visit(DamagePDToAllCreaturesOfTargetPlayerSpellAbility damagePDToAllCreaturesOfTargetPlayerSpellAbility);
public override int Visit(DamagePDToAllCreaturesOfTargetPlayerSpellAbility damagePDToAllCreaturesOfTargetPlayerSpellAbility) { return(0); }