public override int Visit(GainCPAbility ability) { if (Target == null) { return(0); } return(-1); }
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); }
public override int Visit(GainCPAbility ability) { return(0); }
public abstract int Visit(GainCPAbility gainCPAbility);