Skip to content

Commit f77768f

Browse files
committed
Core/Creatures: Fix battleground spirit guides on ffa pvp realms
Closes #31438
1 parent 047e08a commit f77768f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/server/game/Entities/Creature/Creature.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -639,6 +639,13 @@ bool Creature::UpdateEntry(uint32 entry, CreatureData const* data /*= nullptr*/,
639639

640640
m_stringIds[AsUnderlyingType(StringIdType::Template)] = &cInfo->StringId;
641641

642+
if (IsSpiritGuide() && sWorld->IsFFAPvPRealm())
643+
{
644+
// client will only send spirit guide query for units that can assist them
645+
// for ffa pvp flagged players its only other ffa pvp flagged units
646+
SetPvpFlag(UNIT_BYTE2_FLAG_FFA_PVP);
647+
}
648+
642649
return true;
643650
}
644651

0 commit comments

Comments
 (0)