Core/Spells: fixed display hit chance changes of SPELL_AURA_MOD_HIT_CHANCE in the character panel

This commit is contained in:
Ovahlord committed 2019-09-02 15:25:04 +02:00
1 parent 4eba6027d3
commit b1291713bf
4 files changed
+20 -1

No files matched your search

@@ -696,6 +696,12 @@ void Player::UpdateSpellHitChances()
m_modSpellHitChance += GetRatingBonusValue(CR_HIT_SPELL);
}
void Player::UpdateHitChances()
{
float modifier = (float)GetTotalAuraModifier(SPELL_AURA_MOD_HIT_CHANCE);
SetFloatValue(PLAYER_FIELD_UI_HIT_MODIFIER, modifier);
}
void Player::UpdateAllSpellCritChances()
{
for (int i = SPELL_SCHOOL_NORMAL; i < MAX_SPELL_SCHOOL; ++i)