Ejemplo n.º 1
0
        public override int Visit(GainHPAttack attack)
        {
            if (attack.ToCreature)
            {
                Attacker.Health += attack.Hp;
                foreach (CharacterEnum c in GameManager.UserDict.Keys.ToList())
                {
                    AddResponse(c, new CardsModifiedResponse(Attacker));
                }
            }
            else
            {
                Caller.Health += attack.Hp;

                foreach (CharacterEnum c in GameManager.UserDict.Keys.ToList())
                {
                    AddResponse(c, new PlayerModifiedResponse(Caller.Character, Caller.Mana, Caller.Health));
                }
            }
            return(attack.Power);
        }
Ejemplo n.º 2
0
 public override int Visit(GainHPAttack attack)
 {
     return(0);
 }
Ejemplo n.º 3
0
 public abstract int Visit(GainHPAttack attack);