* Added chack for TRAINER_TYPE_PETS, to prevent bogus error that was generated

* since pet trainers no longer train spells.

--HG--
branch : trunk
This commit is contained in:
Brian
2010-02-17 02:08:11 -07:00
parent bea79b0711
commit d2acbbd616

View File

@@ -810,7 +810,7 @@ bool Creature::Create(uint32 guidlow, Map *map, uint32 phaseMask, uint32 Entry,
bool Creature::isCanTrainingOf(Player* pPlayer, bool msg) const
{
if(!isTrainer())
if(!isTrainer() || GetCreatureInfo()->trainer_type == TRAINER_TYPE_PETS)
return false;
TrainerSpellData const* trainer_spells = GetTrainerSpells();