*More correct handling of fly mod auras.
*Pets now learn all levelup spells. *Fix lightning overload. --HG-- branch : trunk
This commit is contained in:
1 parent
8accbc0d09
commit
a1f73a8a08
6 files changed
+51
-22
No files matched your search
@@ -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++;
|
||||
|
||||
Reference in new issue
Block a user