fix(Core/Spell): Corrected values for event food (#21465)

Co-authored-by: pavel_k <pavel_k@mail.com>
This commit is contained in:
Paul 2025-02-17 01:27:45 +03:00 committed by GitHub
parent 8cc47ab1f1
commit 0c099a75ec
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -4876,6 +4876,14 @@ void SpellMgr::LoadSpellInfoCorrections()
spellInfo->SchoolMask = SPELL_SCHOOL_MASK_NATURE;
});
// Event food, fixes to give correct stamina and spirit of 25% of the character level
ApplySpellFix({ 24870 }, [](SpellInfo* spellInfo)
{
spellInfo->Effects[EFFECT_1].BasePoints = 0;
spellInfo->Effects[EFFECT_0].RealPointsPerLevel = 0.25;
spellInfo->Effects[EFFECT_1].RealPointsPerLevel = 0.25;
});
for (uint32 i = 0; i < GetSpellInfoStoreSize(); ++i)
{
SpellInfo* spellInfo = mSpellInfoMap[i];