aboutsummaryrefslogtreecommitdiff
path: root/src/game/Creature.cpp
diff options
context:
space:
mode:
authorQAston <>2010-02-20 20:28:31 +0100
committerQAston <>2010-02-20 20:28:31 +0100
commit2e3f89b61fa33e83b8f70702777549e25e5fc481 (patch)
tree904060daaf9fb782a20e5b2aea3e9febe813de65 /src/game/Creature.cpp
parent4cd4c4170f70a0715daad52b2f1831b6017d647a (diff)
parent8e146c309de73160252ae538689d28660273d459 (diff)
*Move summon water elemental handler to correct place.
--HG-- branch : trunk
Diffstat (limited to 'src/game/Creature.cpp')
-rw-r--r--src/game/Creature.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/Creature.cpp b/src/game/Creature.cpp
index 7816412a0ad..3e834f4aca0 100644
--- a/src/game/Creature.cpp
+++ b/src/game/Creature.cpp
@@ -815,7 +815,7 @@ bool Creature::isCanTrainingOf(Player* pPlayer, bool msg) const
TrainerSpellData const* trainer_spells = GetTrainerSpells();
- if(!trainer_spells || trainer_spells->spellList.empty())
+ if((!trainer_spells || trainer_spells->spellList.empty()) && GetCreatureInfo()->trainer_type != TRAINER_TYPE_PETS)
{
sLog.outErrorDb("Creature %u (Entry: %u) have UNIT_NPC_FLAG_TRAINER but have empty trainer spell list.",
GetGUIDLow(),GetEntry());