* 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:
@@ -810,7 +810,7 @@ bool Creature::Create(uint32 guidlow, Map *map, uint32 phaseMask, uint32 Entry,
|
|||||||
|
|
||||||
bool Creature::isCanTrainingOf(Player* pPlayer, bool msg) const
|
bool Creature::isCanTrainingOf(Player* pPlayer, bool msg) const
|
||||||
{
|
{
|
||||||
if(!isTrainer())
|
if(!isTrainer() || GetCreatureInfo()->trainer_type == TRAINER_TYPE_PETS)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
TrainerSpellData const* trainer_spells = GetTrainerSpells();
|
TrainerSpellData const* trainer_spells = GetTrainerSpells();
|
||||||
|
|||||||
Reference in New Issue
Block a user