diff options
author | Brian <runningnak3d@gmail.com> | 2010-02-17 02:08:11 -0700 |
---|---|---|
committer | Brian <runningnak3d@gmail.com> | 2010-02-17 02:08:11 -0700 |
commit | d2acbbd616540df0dcbcab8ec8d4d63d116480ac (patch) | |
tree | 34fe6c3bf2432a79a6b13e3d98cece5ea4571d61 /src | |
parent | bea79b07112208d5fac892db358b416587668b1a (diff) |
* Added chack for TRAINER_TYPE_PETS, to prevent bogus error that was generated
* since pet trainers no longer train spells.
--HG--
branch : trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/game/Creature.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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(); |