aboutsummaryrefslogtreecommitdiff
path: root/src/game/Pet.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-06-02 10:34:32 -0500
committermegamage <none@none>2009-06-02 10:34:32 -0500
commit395667a7f36c4e2db0f7d2f558532b6b13f80a2c (patch)
tree329771a5e99893706aa60f3cc776dd1a0cee018e /src/game/Pet.cpp
parent564d2a94e5d2c42ba566122b2857c482b638d743 (diff)
*Fix the bug that hunter pet does not get correct stat bonus.
--HG-- branch : trunk
Diffstat (limited to 'src/game/Pet.cpp')
-rw-r--r--src/game/Pet.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/game/Pet.cpp b/src/game/Pet.cpp
index ae8d46eda19..fd71d2088b3 100644
--- a/src/game/Pet.cpp
+++ b/src/game/Pet.cpp
@@ -767,7 +767,10 @@ bool Guardian::InitStatsForLevel(uint32 petlevel)
if(m_owner->getClass() == CLASS_WARLOCK)
petType = SUMMON_PET;
else if(m_owner->getClass() == CLASS_HUNTER)
+ {
petType = HUNTER_PET;
+ m_summonMask |= SUMMON_MASK_HUNTER_PET;
+ }
else
sLog.outError("Unknown type pet %u is summoned by player class %u", GetEntry(), m_owner->getClass());
}