From e1e7dbfe142e2b24bde410bd1ee2ac0296875a57 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Thu, 15 Mar 2018 16:41:32 -0300 Subject: Bad file? --- npc/items/rand_sc_heal.txt | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'npc/items') diff --git a/npc/items/rand_sc_heal.txt b/npc/items/rand_sc_heal.txt index e4b0875a8..046b38e1c 100644 --- a/npc/items/rand_sc_heal.txt +++ b/npc/items/rand_sc_heal.txt @@ -1,6 +1,8 @@ +// TMW-2 Script. // Evol scripts. // Author: // Reid +// Jesusalva // Description: // Random heal every x seconds. // @@ -36,7 +38,7 @@ } else { - @val1 = @val3; + @val3 = @val1; } return; } @@ -48,11 +50,11 @@ OnUse: .@vitality_bonus = min(@min, readparam(bVit) * BaseLevel / 20); .@rand_heal_val = rand(@min, @max); - // val1 is the heal value without the vitality bonus - @val1 = .@rand_heal_val / @delay; - @val3 = (.@rand_heal_val + .@vitality_bonus) / @delay; + // val3 is the heal value without the vitality bonus + @val3 = .@rand_heal_val / @delay; + @val1 = (.@rand_heal_val + .@vitality_bonus) / @delay; - if (@val1 <= 0) close; + if (@val3 <= 0) close; @delay *= 1000; // Put the delay in ms -- cgit v1.2.3-70-g09d2