[7558] Implement command: .learn all_mypettalents

Also output more correct messages at use .reset talents to pet
This commit is contained in:
VladimirMangos 2009-03-28 03:23:32 +03:00
parent 4e66d61da9
commit 2dd36d688f
11 changed files with 125 additions and 8 deletions

View file

@ -1750,3 +1750,12 @@ void Pet::CastPetAura(PetAura const* aura)
else
CastSpell(this, auraId, true);
}
void Pet::learnSpellHighRank(uint32 spellid)
{
learnSpell(spellid);
SpellChainMapNext const& nextMap = spellmgr.GetSpellChainNext();
for(SpellChainMapNext::const_iterator itr = nextMap.lower_bound(spellid); itr != nextMap.upper_bound(spellid); ++itr)
learnSpellHighRank(itr->second);
}