private static bool Cast_OnAction(string args) { Spell spellByName = Spells.GetSpellByName(args); if (spellByName != null) { spellByName.Cast(); } return(true); }
public static Spell GetSpellByName(string name) { return((Spells.GetSpellByName(Spells.RegularList, name) ?? Spells.GetSpellByName(Spells.PaladinList, name)) ?? Spells.GetSpellByName(Spells.NecromancerList, name)); }