*Fix the bug that hunter pet does not get correct stat bonus.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-06-02 10:34:32 -05:00
parent 564d2a94e5
commit 395667a7f3

View File

@@ -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());
}