From b61b2ad09670a806675ab666d17335d0ed34c30a Mon Sep 17 00:00:00 2001 From: ErikasKontenis Date: Sun, 5 Jul 2020 16:59:55 +0300 Subject: [PATCH] remove formula limits from druid heal spells --- data/spells/scripts/spells/heal friend.lua | 6 +----- data/spells/scripts/spells/mass healing.lua | 3 --- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/data/spells/scripts/spells/heal friend.lua b/data/spells/scripts/spells/heal friend.lua index 37d57f4..eff6de3 100644 --- a/data/spells/scripts/spells/heal friend.lua +++ b/data/spells/scripts/spells/heal friend.lua @@ -9,11 +9,7 @@ function onGetFormulaValues(player, level, maglevel) local variation = 40 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 diff --git a/data/spells/scripts/spells/mass healing.lua b/data/spells/scripts/spells/mass healing.lua index 520a28a..21eb5de 100644 --- a/data/spells/scripts/spells/mass healing.lua +++ b/data/spells/scripts/spells/mass healing.lua @@ -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)