diff options
| author | Machiavelli <none@none> | 2009-04-19 21:17:07 +0200 |
|---|---|---|
| committer | Machiavelli <none@none> | 2009-04-19 21:17:07 +0200 |
| commit | 0eb86688d6adb1d63a0b9bd7075cf6f1233e630e (patch) | |
| tree | 36ffd3b0472175f378279f4cd57a0dd36cd3182b /src/game/SpellMgr.cpp | |
| parent | b92eac3b273420598f96b6bf8f3da83cf6ccffe6 (diff) | |
| parent | dcc7b999827553b5a36d64fbe5c5fba4c3b27b69 (diff) | |
Merge
--HG--
branch : trunk
Diffstat (limited to 'src/game/SpellMgr.cpp')
| -rw-r--r-- | src/game/SpellMgr.cpp | 7 |
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++; |
