public bool CanExecute(Spell spell) { if (Character.AP.Current == 0) { return false; } if (Character.MP.Current < Spell.BaseManaCost) { Debug.WriteLine("Not enough Mana!"); return false; } else { return true; } }
public static Spell Fireball() { Spell spell = new Spell(); spell.TargetType = TargetType.Multiple; spell.SpellName = "Fireball"; spell.Method = Methods.Fireball; spell.Range = 1; spell.BaseManaCost = 6; spell.APCost = 1; return spell; }
public static Spell Heal() { Spell spell = new Spell(); spell.TargetType = TargetType.Self; spell.SpellName = "Heal"; spell.Method = Methods.Heal; spell.BaseManaCost = 3; spell.APCost = 1; return spell; }
public static Spell Spark() { Spell spell = new Spell(); spell.TargetType = TargetType.Single; spell.SpellName = "Spark"; spell.Method = Methods.Spark; spell.BaseManaCost = 3; spell.APCost = 1; return spell; }