Debugged this a bit, figured out that mob:checkBaseExp() is the cause and returns false if your pet does the killing and you have no enmity on the target.
Following this, the line: (lua_baseentity.cpp Line: 6227)
Code: Select all
uint32 baseexp = charutils::GetRealExp(PMob->m_HiPCLvl, PMob->GetMLevel());
Code: Select all
CMobEntity* Monster = (CMobEntity*)m_PBattleTarget;
if (Monster->m_HiPCLvl < ((CCharEntity*)m_PPet->PMaster)->GetMLevel())
Monster->m_HiPCLvl = ((CCharEntity*)m_PPet->PMaster)->GetMLevel();