diff options
author | Jesusaves <cpntb1@ymail.com> | 2019-05-20 11:01:20 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2019-05-20 11:01:20 -0300 |
commit | cc8727b60fbcae442bc3fd0e38514733d5fab1d2 (patch) | |
tree | 6bf444e5aa2ba4f0f21f4bcbb580649b3c53c8ca /npc/items/rand_sc_heal.txt | |
parent | 5b6e7d9c85f3e48ce84a6fb4b14d4a59f7da086e (diff) | |
download | serverdata-cc8727b60fbcae442bc3fd0e38514733d5fab1d2.tar.gz serverdata-cc8727b60fbcae442bc3fd0e38514733d5fab1d2.tar.bz2 serverdata-cc8727b60fbcae442bc3fd0e38514733d5fab1d2.tar.xz serverdata-cc8727b60fbcae442bc3fd0e38514733d5fab1d2.zip |
Add legacy_heal, support for legacy behavior
Diffstat (limited to 'npc/items/rand_sc_heal.txt')
-rw-r--r-- | npc/items/rand_sc_heal.txt | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/npc/items/rand_sc_heal.txt b/npc/items/rand_sc_heal.txt index 19d09f62d..fdfcb5cd2 100644 --- a/npc/items/rand_sc_heal.txt +++ b/npc/items/rand_sc_heal.txt @@ -110,8 +110,10 @@ OnUse: .@d=getstatus(getarg(0), 4) * 1000; // If there WAS an effect previously, get ponderate average - if (.@v > 0) + if (.@v > 0) { @val1=ponderate_avg(@val1, @delay, .@v, .@d); + @delay=ponderate_avg(@delay, @val1, .@d, .@v); + } // Decide the healing bonus type. We have four types: S, L, G and M // By default, we use 'S' @@ -120,7 +122,6 @@ OnUse: // Apply the effect and finish sc_end .@skill; sc_start2 .@skill, @delay, @val1, 1; - } end; } |