Beispiel #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);
        }
Beispiel #2
0
 public override int Visit(GainHPAttack attack)
 {
     return(0);
 }
Beispiel #3
0
 public abstract int Visit(GainHPAttack attack);