fix(Core/Spells): Properly handle SPELL_MOD_THREAT flat spell mods. (#11911)

* fix(Core/Spells): Properly handle SPELL_MOD_THREAT flat spell mods.

Fixes #11570

* buildfix.
This commit is contained in:
UltraNix
2022-06-06 14:01:32 +02:00
committed by GitHub
parent 7f92871d65
commit 3f8bf7f994

View File

@@ -2946,7 +2946,15 @@ template <class T> T Player::ApplySpellMod(uint32 spellId, SpellModOp op, T& bas
return;
}
totalflat += mod->value;
int32 flatValue = mod->value;
// SPELL_MOD_THREAT - divide by 100 (in packets we send threat * 100)
if (mod->op == SPELLMOD_THREAT)
{
flatValue /= 100;
}
totalflat += flatValue;
}
else if (mod->type == SPELLMOD_PCT)
{