fix(Core/Quest): A Rogue's Deal should be completed if pet lands the killing blow (#9917)

This commit is contained in:
Nefertumm
2022-01-20 10:45:19 -03:00
committed by GitHub
parent b5075e9a0a
commit fd7f33b737

View File

@@ -110,7 +110,20 @@ public:
m_uiPhase = 1;
if (pDoneBy->GetTypeId() == TYPEID_PLAYER)
{
m_uiPlayerGUID = pDoneBy->GetGUID();
}
else if (pDoneBy->IsPet())
{
if (Unit* owner = pDoneBy->GetOwner())
{
// not sure if this is needed.
if (owner->GetTypeId() == TYPEID_PLAYER)
{
m_uiPlayerGUID = owner->GetGUID();
}
}
}
}
}