diff options
author | Rothend <67004168+Rothend@users.noreply.github.com> | 2020-06-17 19:28:05 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-17 19:28:05 +0200 |
commit | c4caae9b6d4f90f1785f7db1538c996833a9ef86 (patch) | |
tree | 8d6d6c0121fb20658e4bc9e489bdbfbc9e97797b | |
parent | 418c3b1fd50664aad035bd975a65281e82ba2dea (diff) |
Script/Spell: properly round damage of Seal of Righteousness (on-hit proc). (#24821)
-rw-r--r-- | src/server/scripts/Spells/spell_paladin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/scripts/Spells/spell_paladin.cpp b/src/server/scripts/Spells/spell_paladin.cpp index eb91c11a451..20b942d5ba1 100644 --- a/src/server/scripts/Spells/spell_paladin.cpp +++ b/src/server/scripts/Spells/spell_paladin.cpp @@ -2054,7 +2054,7 @@ class spell_pal_seal_of_righteousness : public SpellScriptLoader float mws = GetTarget()->GetAttackTime(BASE_ATTACK); mws /= 1000.0f; - int32 bp = int32(mws * (0.022f * ap + 0.044f * sph)); + int32 bp = std::lroundf(mws * (0.022f * ap + 0.044f * sph)); CastSpellExtraArgs args(aurEff); args.AddSpellBP0(bp); GetTarget()->CastSpell(victim, SPELL_PALADIN_SEAL_OF_RIGHTEOUSNESS, args); |