mirror of
https://github.com/ErikasKontenis/SabrehavenServer.git
synced 2025-05-01 18:19:20 +02:00
remove formula limits from druid heal spells
This commit is contained in:
parent
fdc71b8b1d
commit
b61b2ad096
@ -10,10 +10,6 @@ function onGetFormulaValues(player, level, maglevel)
|
||||
|
||||
local formula = 3 * maglevel + (2 * level)
|
||||
|
||||
if formula >= 101 then
|
||||
formula = 100
|
||||
end
|
||||
|
||||
local min = (formula * (base - variation)) / 100
|
||||
local max = (formula * (base + variation)) / 100
|
||||
return min, max
|
||||
|
@ -21,9 +21,6 @@ function onTargetCreature(creature, target)
|
||||
|
||||
local value = math.random(-variation, variation) + base
|
||||
local formula = 3 * player:getMagicLevel() + (2 * player:getLevel())
|
||||
if formula >= 101 then
|
||||
formula = 100
|
||||
end
|
||||
local total = formula * value / 100
|
||||
|
||||
doTargetCombatHealth(0, target, COMBAT_HEALING, total, total, CONST_ME_NONE)
|
||||
|
Loading…
x
Reference in New Issue
Block a user