From b151420c14f362a7e3a3c809fc5b16d6b22d57ec Mon Sep 17 00:00:00 2001 From: Eduardo Dantas Date: Mon, 27 Nov 2023 19:28:52 -0300 Subject: [PATCH] fix: revert --- .../scripts/spells/attack/divine_grenade.lua | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/data-otservbr-global/scripts/spells/attack/divine_grenade.lua b/data-otservbr-global/scripts/spells/attack/divine_grenade.lua index 59a83f89c99..21c6607e320 100644 --- a/data-otservbr-global/scripts/spells/attack/divine_grenade.lua +++ b/data-otservbr-global/scripts/spells/attack/divine_grenade.lua @@ -7,6 +7,17 @@ function onGetFormulaValues(player, level, maglevel) local min = (level / 5) + (maglevel * 4) local max = (level / 5) + (maglevel * 6) + local grade = player:upgradeSpellsWOD("Divine Grenade") + + local multiplier = 1.0 + if grade ~= WHEEL_GRADE_NONE then + local multiplierByGrade = { 1.3, 1.6, 2.0 } + multiplier = multiplierByGrade[grade] + end + + min = min * multiplier + max = max * multiplier + return -min, -max end