fix(Core/Quest): A Rogue's Deal should be completed if pet lands the killing blow (#9917)
This commit is contained in:
parent
b5075e9a0a
commit
fd7f33b737
1 changed files with 13 additions and 0 deletions
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue