mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-19 00:48:56 +01:00
* 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
|
||||
{
|
||||
if(!isTrainer())
|
||||
if(!isTrainer() || GetCreatureInfo()->trainer_type == TRAINER_TYPE_PETS)
|
||||
return false;
|
||||
|
||||
TrainerSpellData const* trainer_spells = GetTrainerSpells();
|
||||
|
||||
Reference in New Issue
Block a user