From 395667a7f36c4e2db0f7d2f558532b6b13f80a2c Mon Sep 17 00:00:00 2001 From: megamage Date: Tue, 2 Jun 2009 10:34:32 -0500 Subject: *Fix the bug that hunter pet does not get correct stat bonus. --HG-- branch : trunk --- src/game/Pet.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') 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()); } -- cgit v1.2.3