diff options
author | QAston <none@none> | 2009-05-02 16:08:52 +0200 |
---|---|---|
committer | QAston <none@none> | 2009-05-02 16:08:52 +0200 |
commit | a1f73a8a0801f217df5fe56cbe7051cd029b5f77 (patch) | |
tree | cf5bf9dbadea9a715851409b66f7dc7b09e4bd29 /src/game/SpellMgr.cpp | |
parent | 8accbc0d09a1efa27a500b2d6a8b9e76ef74c431 (diff) |
*More correct handling of fly mod auras.
*Pets now learn all levelup spells.
*Fix lightning overload.
--HG--
branch : trunk
Diffstat (limited to 'src/game/SpellMgr.cpp')
-rw-r--r-- | src/game/SpellMgr.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/game/SpellMgr.cpp b/src/game/SpellMgr.cpp index e3dfaf50477..200cc98d803 100644 --- a/src/game/SpellMgr.cpp +++ b/src/game/SpellMgr.cpp @@ -2578,10 +2578,9 @@ void SpellMgr::LoadPetLevelupSpellMap() continue; SpellEntry const *spell = sSpellStore.LookupEntry(skillLine->spellId); // not exist or triggered or talent - if(!spell || !spell->spellLevel || GetTalentSpellPos(spell->Id)) + if(!spell || !spell->spellLevel) continue; - // TODO: some spells have no spellfamilyflag but should be learned - if (!spell->SpellFamilyName) + if(skillLine->learnOnGetSkill != ABILITY_LEARNED_ON_GET_RACE_OR_CLASS_SKILL) continue; mPetLevelupSpellMap.insert(PetLevelupSpellMap::value_type(creatureFamily->ID, std::make_pair(spell->spellLevel , spell->Id ))); count++; |