public override int Visit(SalazarAbility ability)
 {
     if (Target is PlayerTarget && Target.Character != this.Owner)
     {
         return(0);
     }
     //I do not check immunity cause i will be dead in that case
     return(-1);
 }
Ejemplo n.º 2
0
        public override int Visit(SalazarAbility ability)
        {
            // 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 -= ability.NumPD;
                    if (card.Health > 0)
                    {
                        card.PoisonDamage += ability.NumPD;
                    }
                    modCards.Add(card);
                }

                foreach (CreatureCard card in GameManager.UserDict[t.Character].Player.Outer)
                {
                    card.Health -= ability.NumPD;
                    if (card.Health > 0)
                    {
                        card.PoisonDamage += ability.NumPD;
                    }
                    modCards.Add(card);
                }
            }

            // Prepare responses
            foreach (CharacterEnum ch in GameManager.UserDict.Keys.ToList())
            {
                if (modCards.Any())
                {
                    AddResponse(ch, new CardsModifiedResponse(modCards));
                }
            }
            return(0);
        }
Ejemplo n.º 3
0
 public override int Visit(SalazarAbility salazarAbility)
 {
     return(0);
 }
Ejemplo n.º 4
0
 public abstract int Visit(SalazarAbility salazarAbility);