mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 01:37:00 +00:00
[7558] Implement command: .learn all_mypettalents
Also output more correct messages at use .reset talents to pet
This commit is contained in:
parent
4e66d61da9
commit
2dd36d688f
11 changed files with 125 additions and 8 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue