Skip to content

Commit

Permalink
Scripts: Fix SCRIPT_FLAG_BUDDY_BY_GUID with dynguid
Browse files Browse the repository at this point in the history
  • Loading branch information
killerwife committed Oct 3, 2023
1 parent 0f00508 commit 2907215
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/game/DBScripts/ScriptMgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2527,12 +2527,12 @@ bool ScriptAction::ExecuteDbscriptCommand(WorldObject* pSource, WorldObject* pTa
{
if (m_script->IsCreatureBuddy())
{
if (pTarget && pTarget->IsUnit() && pTarget->GetGUIDLow() == m_script->searchRadiusOrGuid)
if (pTarget && pTarget->IsUnit() && pTarget->GetDbGuid() == m_script->searchRadiusOrGuid)
terminationBuddy = pTarget;
}
else
{
if (pTarget && pTarget->IsGameObject() && pTarget->GetGUIDLow() == m_script->searchRadiusOrGuid)
if (pTarget && pTarget->IsGameObject() && pTarget->GetDbGuid() == m_script->searchRadiusOrGuid)
terminationBuddy = pTarget;
}
}
Expand Down

0 comments on commit 2907215

Please sign in to comment.