Example #1
0
        public static bool CanLearn(this Character chr, TrainerSpellEntry trainerSpell)
        {
            if (trainerSpell.Spell == null)
            {
                return(false);
            }

            if (trainerSpell.GetTrainerSpellState(chr) != TrainerSpellState.Available)
            {
                return(false);
            }
            return(true);
        }
Example #2
0
 public static bool CanLearn(this Character chr, TrainerSpellEntry trainerSpell)
 {
     return(trainerSpell.Spell != null && trainerSpell.GetTrainerSpellState(chr) == TrainerSpellState.Available);
 }