Skip to content

Commit

Permalink
Dbscript: Fix dbguid targeting not working with dynguid
Browse files Browse the repository at this point in the history
  • Loading branch information
killerwife committed Apr 6, 2022
1 parent 6ea008b commit af82f28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/game/DBScripts/ScriptMgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1202,7 +1202,7 @@ bool ScriptAction::GetScriptProcessTargets(WorldObject* originalSource, WorldObj
if (m_script->IsCreatureBuddy())
{
CreatureData const* cData = sObjectMgr.GetCreatureData(m_script->searchRadiusOrGuid);
buddy = m_map->GetCreature(cData->GetObjectGuid(m_script->searchRadiusOrGuid));
buddy = m_map->GetCreature(m_script->searchRadiusOrGuid);

if (buddy && ((Creature*)buddy)->IsAlive() == m_script->IsDeadOrDespawnedBuddy())
{
Expand Down

0 comments on commit af82f28

Please sign in to comment.