*Some changes to pet spell learning-now pet passives should work.

*Fix a crash with lifebloom.

--HG--
branch : trunk
This commit is contained in:
QAston committed 2009-04-19 17:23:03 +02:00
1 parent 73749e13fe
commit cfabdd2fd2
3 files changed
+9 -4

No files matched your search

+2 -2
View File
@@ -2533,8 +2533,8 @@ void SpellMgr::LoadPetLevelupSpellMap()
if (creatureFamily->skillLine[j]!=skillLine->skillId)
continue;
SpellEntry const *spell = sSpellStore.LookupEntry(skillLine->spellId);
// not exist
if(!spell)
// not exist or passive (passives are handled elsewhere)
if(!spell || IsPassiveSpell(spell))
continue;
// Make sure that triggered spells aren't learned
if (!spell->SpellFamilyName && !spell->StartRecoveryCategory)