aboutsummaryrefslogtreecommitdiff
path: root/src/game/SpellMgr.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/SpellMgr.cpp')
-rw-r--r--src/game/SpellMgr.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/game/SpellMgr.cpp b/src/game/SpellMgr.cpp
index af8a04740f8..9b6e785ab52 100644
--- a/src/game/SpellMgr.cpp
+++ b/src/game/SpellMgr.cpp
@@ -2519,9 +2519,8 @@ void SpellMgr::LoadPetLevelupSpellMap()
// not exist
if(!spell)
continue;
- if (!spell->spellLevel)
- continue;
- if (!spell->SpellFamilyName)
+ // Make sure that triggered spells aren't learned
+ if (!spell->SpellFamilyName && !spell->StartRecoveryCategory)
continue;
mPetLevelupSpellMap.insert(PetLevelupSpellMap::value_type(creatureFamily->ID, std::make_pair(spell->spellLevel , spell->Id )));
count++;