*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
2009-04-19 17:23:03 +02:00
parent 73749e13fe
commit cfabdd2fd2
3 changed files with 9 additions and 4 deletions

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)