aboutsummaryrefslogtreecommitdiff
path: root/src/game/SpellMgr.cpp
diff options
context:
space:
mode:
authorQAston <none@none>2009-04-06 14:54:56 +0200
committerQAston <none@none>2009-04-06 14:54:56 +0200
commit276084e2942ff861120a890c5726da31b5a4c25b (patch)
tree8745be2eae802d7e296300e733483eb3db1c7f54 /src/game/SpellMgr.cpp
parentbeabe1fabac86773a2cc091102ca5e7d0519ce6b (diff)
*Fixes in pet levelup spell system-pets no longer learn triggered spells and can cow learn 2 spells for 1 level.
--HG-- branch : trunk
Diffstat (limited to 'src/game/SpellMgr.cpp')
-rw-r--r--src/game/SpellMgr.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/game/SpellMgr.cpp b/src/game/SpellMgr.cpp
index 6a670d8c97a..64415e2c4ed 100644
--- a/src/game/SpellMgr.cpp
+++ b/src/game/SpellMgr.cpp
@@ -2500,7 +2500,9 @@ void SpellMgr::LoadPetLevelupSpellMap()
continue;
if (!spell->spellLevel)
continue;
- mPetLevelupSpellMap[creatureFamily->ID][spell->spellLevel] = spell->Id;
+ if (!spell->SpellFamilyName)
+ continue;
+ mPetLevelupSpellMap.insert(PetLevelupSpellMap::value_type(creatureFamily->ID, std::make_pair(spell->spellLevel , spell->Id )));
count++;
}
}