mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-24 10:56:38 +01:00
*Some clean up and add debug info to find the reason of crash.
--HG-- branch : trunk
This commit is contained in:
@@ -792,7 +792,7 @@ bool Guardian::InitStatsForLevel(uint32 petlevel)
|
||||
|
||||
//Determine pet type
|
||||
PetType petType = MAX_PET_TYPE;
|
||||
if(HasUnitTypeMask(UNIT_MASK_PET) && m_owner->GetTypeId() == TYPEID_PLAYER)
|
||||
if(isPet() && m_owner->GetTypeId() == TYPEID_PLAYER)
|
||||
{
|
||||
if(m_owner->getClass() == CLASS_WARLOCK)
|
||||
petType = SUMMON_PET;
|
||||
|
||||
Reference in New Issue
Block a user