Skip to content

feat(WG): Split BF team assignment from visual transformation #136

Merged
Nyeriah merged 1 commit into
azerothcore:masterfrom
Nyeriah:wintergras
Mar 2, 2026
Merged

feat(WG): Split BF team assignment from visual transformation #136
Nyeriah merged 1 commit into
azerothcore:masterfrom
Nyeriah:wintergras

Conversation

@Nyeriah
Copy link
Copy Markdown
Member

@Nyeriah Nyeriah commented Mar 2, 2026

No description provided.

Introduce PrepareFakeTeamForBF and ApplyFakeVisualsForBF to replace
the single SetFakeRaceAndMorphForBF call in the BF hooks.  Team
assignment (faction/team change) now happens before the invite bucket
is written; the race/morph visuals are only applied once the player
actually accepts the war invitation.  Players who refuse or are kicked
before accepting no longer receive a stale faction appearance.

Also adds the OnBattlefieldBeforeInvitePlayerToWar hook subscription
and the corresponding ScriptMgr call in Battlefield::InvitePlayerToWar
so pre-war zone players are assigned to the correct team before
m_InvitedPlayers is written.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@Nyeriah Nyeriah merged commit 1786c3a into azerothcore:master Mar 2, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant