aboutsummaryrefslogtreecommitdiff
path: root/src/game/Pet.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-03-28 16:25:42 -0600
committermegamage <none@none>2009-03-28 16:25:42 -0600
commitce8462ccf9ba6730db6b1c17e4db95c0519a66e2 (patch)
tree7456dbeba23c30c9a1888664fa69e28417a47579 /src/game/Pet.cpp
parente76a15491b4cf874d60f2bc2cd95b02e4b1ee5b4 (diff)
[7558] Implement command: .learn all_mypettalents Author: VladimirMangos
Also output more correct messages at use .reset talents to pet --HG-- branch : trunk
Diffstat (limited to 'src/game/Pet.cpp')
-rw-r--r--src/game/Pet.cpp7
1 files changed, 7 insertions, 0 deletions
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);
+}