mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-21 09:44:45 +01:00
Core/Creatures: Fix battleground spirit guides on ffa pvp realms
Closes #31438
This commit is contained in:
@@ -639,6 +639,13 @@ bool Creature::UpdateEntry(uint32 entry, CreatureData const* data /*= nullptr*/,
|
||||
|
||||
m_stringIds[AsUnderlyingType(StringIdType::Template)] = &cInfo->StringId;
|
||||
|
||||
if (IsSpiritGuide() && sWorld->IsFFAPvPRealm())
|
||||
{
|
||||
// client will only send spirit guide query for units that can assist them
|
||||
// for ffa pvp flagged players its only other ffa pvp flagged units
|
||||
SetPvpFlag(UNIT_BYTE2_FLAG_FFA_PVP);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user