diff options
-rw-r--r-- | npc/items/rand_sc_heal.txt | 12 |
1 files changed, 7 insertions, 5 deletions
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 |