public override int Visit(KillIfPDAbility ability) { if (Target is CardTarget && ((CardTarget)Target).Card.PoisonDamage >= 4) { return(CheckImmunity()); } return(-1); }
public override int Visit(KillIfPDAbility ability) { //Log(OwnerCard.Name + " used KillIfPDAbility"); List <CreatureCard> DeadCards = new List <CreatureCard>(); foreach (CardTarget t in CardTargets) { CreatureCard deadCard = (CreatureCard)(GameManager.UserDict[t.Character].Player.GetCardFromId(t.CardId, Place.INNER) ?? GameManager.UserDict[t.Character].Player.GetCardFromId(t.CardId, Place.OUTER)); //Log("Target is " + (deadCard.Name ?? "null") + " of " + t.Character.ToString()); deadCard.Health = 0; DeadCards.Add(deadCard); } foreach (CharacterEnum c in GameManager.UserDict.Keys.ToList()) { AddResponse(c, new CardsModifiedResponse(DeadCards)); } return(0); }
public override int Visit(KillIfPDAbility killIfPDAbility) { return(0); }
public abstract int Visit(KillIfPDAbility killIfPDAbility);