aboutsummaryrefslogtreecommitdiff
path: root/src/game/SpellMgr.cpp
diff options
context:
space:
mode:
authorMachiavelli <none@none>2009-04-19 21:17:07 +0200
committerMachiavelli <none@none>2009-04-19 21:17:07 +0200
commit0eb86688d6adb1d63a0b9bd7075cf6f1233e630e (patch)
tree36ffd3b0472175f378279f4cd57a0dd36cd3182b /src/game/SpellMgr.cpp
parentb92eac3b273420598f96b6bf8f3da83cf6ccffe6 (diff)
parentdcc7b999827553b5a36d64fbe5c5fba4c3b27b69 (diff)
Merge
--HG-- branch : trunk
Diffstat (limited to 'src/game/SpellMgr.cpp')
-rw-r--r--src/game/SpellMgr.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/game/SpellMgr.cpp b/src/game/SpellMgr.cpp
index 57da4116275..df5fa14541b 100644
--- a/src/game/SpellMgr.cpp
+++ b/src/game/SpellMgr.cpp
@@ -2533,11 +2533,10 @@ void SpellMgr::LoadPetLevelupSpellMap()
if (creatureFamily->skillLine[j]!=skillLine->skillId)
continue;
SpellEntry const *spell = sSpellStore.LookupEntry(skillLine->spellId);
- // not exist or passive (passives are handled elsewhere)
- if(!spell || IsPassiveSpell(spell->Id))
+ // not exist or triggered or talent
+ if(!spell || !spell->spellLevel || GetTalentSpellPos(spell->Id))
continue;
- // Make sure that triggered spells aren't learned
- if (!spell->SpellFamilyName && !spell->StartRecoveryCategory)
+ if (!spell->SpellFamilyFlags && spell->SpellIconID!=2310 && (!spell->RecoveryTime || !spell->StartRecoveryCategory))
continue;
mPetLevelupSpellMap.insert(PetLevelupSpellMap::value_type(creatureFamily->ID, std::make_pair(spell->spellLevel , spell->Id )));
count++;