feat(Core/Player): Allow spell validation to be skipped at server owner's risk (#22521)

Co-authored-by: Tereneckla <Tereneckla@pm.me>
This commit is contained in:
Christian M
2025-07-26 18:26:00 -04:00
committed by GitHub
parent 00f411c0b1
commit d2fb893f87
4 changed files with 15 additions and 0 deletions

View File

@@ -3103,6 +3103,9 @@ bool Player::addSpell(uint32 spellId, uint8 addSpecMask, bool updateActive, bool
bool Player::CheckSkillLearnedBySpell(uint32 spellId)
{
if (!sWorld->getBoolConfig(CONFIG_VALIDATE_SKILL_LEARNED_BY_SPELLS))
return true;
SkillLineAbilityMapBounds skill_bounds = sSpellMgr->GetSkillLineAbilityMapBounds(spellId);
uint32 errorSkill = 0;
for (SkillLineAbilityMap::const_iterator sla = skill_bounds.first; sla != skill_bounds.second; ++sla)