From d2acbbd616540df0dcbcab8ec8d4d63d116480ac Mon Sep 17 00:00:00 2001 From: Brian Date: Wed, 17 Feb 2010 02:08:11 -0700 Subject: * Added chack for TRAINER_TYPE_PETS, to prevent bogus error that was generated * since pet trainers no longer train spells. --HG-- branch : trunk --- src/game/Creature.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/game/Creature.cpp b/src/game/Creature.cpp index 7816412a0ad..cd9f8d8f009 100644 --- a/src/game/Creature.cpp +++ b/src/game/Creature.cpp @@ -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(); -- cgit v1.2.3