Skip to content

Commit e593dbc

Browse files
committed
Scripts: Fix error with using SCRIPT_FLAG_BUDDY_BY_SPAWN_GROUP
1 parent f386fcb commit e593dbc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/game/DBScripts/ScriptMgr.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ void ScriptMgr::LoadScripts(ScriptMapType scriptType)
165165
}
166166

167167
// generic command args check
168-
if (tmp.buddyEntry && !(tmp.data_flags & SCRIPT_FLAG_BUDDY_BY_GUID) && (tmp.data_flags & SCRIPT_FLAG_BUDDY_BY_STRING_ID) == 0)
168+
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)
169169
{
170170
if (tmp.IsCreatureBuddy() && !ObjectMgr::GetCreatureTemplate(tmp.buddyEntry))
171171
{

0 commit comments

Comments
 (0)