fix: correct off-by-one in GetSpellLevel for Berserker class (#5060)

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
ltroyloveandClaude Sonnet 4.6 authored and GitHub committed 2026-04-20 17:50:36 -07:00
1 parent ba2ca5eada
commit 348094b881
1 file changed
+1 -1
+1 -1
View File
@@ -999,7 +999,7 @@ uint8 GetSpellLevel(uint16 spell_id, uint8 class_id)
return UINT8_MAX;
}
if (class_id >= Class::PLAYER_CLASS_COUNT) {
if (class_id < Class::Warrior || class_id > Class::PLAYER_CLASS_COUNT) {
return UINT8_MAX;
}