Skip to content

Add WOW_PROJECT_ID guards to version-specific Lua files (#26)#29

Merged
Xerrion merged 1 commit intomasterfrom
fix/25-bug-rla-mythic-command-not-working
Mar 3, 2026
Merged

Add WOW_PROJECT_ID guards to version-specific Lua files (#26)#29
Xerrion merged 1 commit intomasterfrom
fix/25-bug-rla-mythic-command-not-working

Conversation

@Xerrion
Copy link
Collaborator

@Xerrion Xerrion commented Mar 3, 2026

  • Initial plan

  • fix: add WOW_PROJECT_ID version guards to prevent cross-version file loading

When all version-specific Lua files are loaded (e.g. from a GitHub clone or when the TOC doesn't conditionally load files), the last file's slash command handler overwrites earlier ones. Since RaidLogAuto_Classic.lua is listed last and lacks the mythic command, /rla mythic falls through to the unknown command handler on Retail.

Each file now checks WOW_PROJECT_ID at the top and returns early if it doesn't match the expected game version, ensuring only the correct version-specific file initializes.

Fixes #25

* Initial plan

* fix: add WOW_PROJECT_ID version guards to prevent cross-version file loading

When all version-specific Lua files are loaded (e.g. from a GitHub clone
or when the TOC doesn't conditionally load files), the last file's slash
command handler overwrites earlier ones. Since RaidLogAuto_Classic.lua is
listed last and lacks the mythic command, /rla mythic falls through to the
unknown command handler on Retail.

Each file now checks WOW_PROJECT_ID at the top and returns early if it
doesn't match the expected game version, ensuring only the correct
version-specific file initializes.

Fixes #25
@Xerrion Xerrion linked an issue Mar 3, 2026 that may be closed by this pull request
@Xerrion Xerrion merged commit 4dbb629 into master Mar 3, 2026
1 check passed
@Xerrion Xerrion deleted the fix/25-bug-rla-mythic-command-not-working branch March 3, 2026 09:56
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.

[Bug]: "/rla mythic" command not working.

2 participants