Skip to content

Commit

Permalink
fix: revert
Browse files Browse the repository at this point in the history
  • Loading branch information
dudantas committed Nov 27, 2023
1 parent 3406563 commit b151420
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions data-otservbr-global/scripts/spells/attack/divine_grenade.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit b151420

Please sign in to comment.