Skip to content

Commit

Permalink
Scripts: Fix error with using SCRIPT_FLAG_BUDDY_BY_SPAWN_GROUP
Browse files Browse the repository at this point in the history
  • Loading branch information
killerwife committed Dec 13, 2024
1 parent 1bdcf57 commit 04fd31a
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 @@ -164,7 +164,7 @@ void ScriptMgr::LoadScripts(ScriptMapType scriptType)
}

// generic command args check
if (tmp.buddyEntry && !(tmp.data_flags & SCRIPT_FLAG_BUDDY_BY_GUID) && (tmp.data_flags & SCRIPT_FLAG_BUDDY_BY_STRING_ID) == 0)
if (tmp.buddyEntry && !(tmp.data_flags & SCRIPT_FLAG_BUDDY_BY_GUID) && (tmp.data_flags & SCRIPT_FLAG_BUDDY_BY_SPAWN_GROUP) == 0 && (tmp.data_flags & SCRIPT_FLAG_BUDDY_BY_STRING_ID) == 0)
{
if (tmp.IsCreatureBuddy() && !ObjectMgr::GetCreatureTemplate(tmp.buddyEntry))
{
Expand Down

0 comments on commit 04fd31a

Please sign in to comment.