public override int Visit(GainCPAbility ability)
 {
     if (Target == null)
     {
         return(0);
     }
     return(-1);
 }
Пример #2
0
        public override int Visit(GainCPAbility ability)
        {
            //Log(OwnerCard.Name + " used GainCPAbility");
            Player caller = GameManager.UserDict[Owner].Player;

            caller.Mana += ability.cp;
            //Log(Owner.ToString() + " gained " + caller.Mana + " CP");
            foreach (CharacterEnum c in GameManager.UserDict.Keys.ToList())
            {
                AddResponse(c, new PlayerModifiedResponse(caller.Character, caller.Mana, caller.Health));
            }
            return(0);
        }
Пример #3
0
 public override int Visit(GainCPAbility ability)
 {
     return(0);
 }
Пример #4
0
 public abstract int Visit(GainCPAbility gainCPAbility);