Skip to content

refactor(WG): remove unused PrepareFakeTeamForBF/ApplyFakeVisualsForBF#155

Merged
Nyeriah merged 1 commit into
azerothcore:masterfrom
Nyeriah:refactor/remove-unused-wg-fakers
May 31, 2026
Merged

refactor(WG): remove unused PrepareFakeTeamForBF/ApplyFakeVisualsForBF#155
Nyeriah merged 1 commit into
azerothcore:masterfrom
Nyeriah:refactor/remove-unused-wg-fakers

Conversation

@Nyeriah

@Nyeriah Nyeriah commented May 31, 2026

Copy link
Copy Markdown
Member

Summary

  • Removes CFBG::PrepareFakeTeamForBF and CFBG::ApplyFakeVisualsForBF, which were declared, defined, and never called anywhere in the module.
  • The pair implemented a deferred "set faction first, apply visuals on war accept" flow for WG. The active war-join path (OnBattlefieldPlayerJoinWar in CFBG_SC.cpp) uses the single-shot SetFakeRaceAndMorphForBF instead, so the deferred pair is dead code.
  • No behavior change; pure subtraction (56 lines).

Test plan

  • Build module under AzerothCore (-DMODULES=static) and confirm no unresolved symbols.
  • Smoke check: enter a regular BG as cross-faction — fake morph applies as before.
  • Smoke check: enter Wintergrasp during war as cross-faction — fake faction/morph applies on war accept (SetFakeRaceAndMorphForBF path), clears on war end / zone leave / logout-outside-war as before.
  • .cfbg debug still reports Faked / FakePlayer struct values correctly.

Both functions were declared, defined, and never called. They implemented
a "set faction first, apply visuals later" two-step flow for WG war entry,
but the active code path (OnBattlefieldPlayerJoinWar) uses the single-shot
SetFakeRaceAndMorphForBF instead. Removing the dead pair shrinks the
public surface of CFBG and clarifies which methods drive the WG lifecycle.

No behavior change.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@Nyeriah Nyeriah merged commit 35c5bcf into azerothcore:master May 31, 2026
1 check passed
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