From fd7f33b73787ea1b7f062a184d344fd874dfe0db Mon Sep 17 00:00:00 2001 From: Nefertumm Date: Thu, 20 Jan 2022 10:45:19 -0300 Subject: [PATCH] fix(Core/Quest): A Rogue's Deal should be completed if pet lands the killing blow (#9917) --- .../EasternKingdoms/zone_tirisfal_glades.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/server/scripts/EasternKingdoms/zone_tirisfal_glades.cpp b/src/server/scripts/EasternKingdoms/zone_tirisfal_glades.cpp index 5781354f9..29e6bf3fb 100644 --- a/src/server/scripts/EasternKingdoms/zone_tirisfal_glades.cpp +++ b/src/server/scripts/EasternKingdoms/zone_tirisfal_glades.cpp @@ -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(); + } + } + } } }