Example #1
0
        private static bool Cast_OnAction(string args)
        {
            Spell spellByName = Spells.GetSpellByName(args);

            if (spellByName != null)
            {
                spellByName.Cast();
            }
            return(true);
        }
Example #2
0
 public static Spell GetSpellByName(string name)
 {
     return((Spells.GetSpellByName(Spells.RegularList, name) ?? Spells.GetSpellByName(Spells.PaladinList, name)) ?? Spells.GetSpellByName(Spells.NecromancerList, name));
 }