Skip to content

fix(Core): Validate item template before creating item in Transmogrify#225

Merged
Nyeriah merged 1 commit into
azerothcore:masterfrom
Nyeriah:crahfix
Mar 6, 2026
Merged

fix(Core): Validate item template before creating item in Transmogrify#225
Nyeriah merged 1 commit into
azerothcore:masterfrom
Nyeriah:crahfix

Conversation

@Nyeriah
Copy link
Copy Markdown
Member

@Nyeriah Nyeriah commented Mar 6, 2026

This pull request adds an important validation step to the transmogrification process, ensuring that players cannot use invalid item entries when attempting to transmogrify. This improves both system reliability and error reporting.

Validation improvements:

  • Added a check in Transmogrification::Transmogrify to verify that the provided itemEntry exists using sObjectMgr->GetItemTemplate. If the item entry is invalid, the function logs an error and returns an appropriate error code instead of proceeding.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@Nyeriah Nyeriah merged commit 2427a32 into azerothcore:master Mar 6, 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