From ce8462ccf9ba6730db6b1c17e4db95c0519a66e2 Mon Sep 17 00:00:00 2001 From: megamage Date: Sat, 28 Mar 2009 16:25:42 -0600 Subject: [7558] Implement command: .learn all_mypettalents Author: VladimirMangos Also output more correct messages at use .reset talents to pet --HG-- branch : trunk --- src/game/Pet.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/game/Pet.cpp') diff --git a/src/game/Pet.cpp b/src/game/Pet.cpp index b2bc134a2c0..cf489a0b8e1 100644 --- a/src/game/Pet.cpp +++ b/src/game/Pet.cpp @@ -1748,3 +1748,10 @@ void Pet::CastPetAura(PetAura const* aura) CastSpell(this, auraId, true); } +void Pet::learnSpellHighRank(uint32 spellid) +{ + learnSpell(spellid,false); + + if(uint32 next = spellmgr.GetNextSpellInChain(spellid)) + learnSpellHighRank(next); +} -- cgit v1.2.3