* 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:
1 parent
bea79b0711
commit
d2acbbd616
1 file changed
+1
-1
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user