fix(Core/Quest): A Rogue's Deal should be completed if pet lands the killing blow (#9917)
This commit is contained in:
@@ -110,7 +110,20 @@ public:
|
|||||||
m_uiPhase = 1;
|
m_uiPhase = 1;
|
||||||
|
|
||||||
if (pDoneBy->GetTypeId() == TYPEID_PLAYER)
|
if (pDoneBy->GetTypeId() == TYPEID_PLAYER)
|
||||||
|
{
|
||||||
m_uiPlayerGUID = pDoneBy->GetGUID();
|
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();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user