From c4caae9b6d4f90f1785f7db1538c996833a9ef86 Mon Sep 17 00:00:00 2001 From: Rothend <67004168+Rothend@users.noreply.github.com> Date: Wed, 17 Jun 2020 19:28:05 +0200 Subject: Script/Spell: properly round damage of Seal of Righteousness (on-hit proc). (#24821) --- src/server/scripts/Spells/spell_paladin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/server/scripts/Spells') 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); -- cgit v1.2.3