This commit is contained in:
EricksOliveira 2025-09-02 00:23:47 -03:00
parent 8aa7a41af1
commit ab97511b8e
2 changed files with 2 additions and 8 deletions

View File

@ -0,0 +1,2 @@
-- Fixes Horn of Winter rank chain
UPDATE `npc_trainer` SET `ReqSpell` = 57330 WHERE `SpellID` = 57623; -- Rank 2 requires Rank 1

View File

@ -3930,20 +3930,12 @@ TrainerSpellState Player::GetTrainerSpellState(TrainerSpell const* trainer_spell
if (!trainer_spell->learnedSpell[i])
continue;
uint32 firstRankSpell = sSpellMgr->GetFirstSpellInChain(trainer_spell->learnedSpell[i]);
for (uint32 spellId = firstRankSpell; spellId; spellId = sSpellMgr->GetNextSpellInChain(spellId))
{
if (HasSpell(spellId))
continue;
}
if (!HasSpell(trainer_spell->learnedSpell[i]))
{
hasSpell = false;
break;
}
}
// known spell
if (hasSpell)
return TRAINER_SPELL_GRAY;