summaryrefslogtreecommitdiff
path: root/npc/items/rand_sc_heal.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/items/rand_sc_heal.txt')
-rw-r--r--npc/items/rand_sc_heal.txt12
1 files changed, 3 insertions, 9 deletions
diff --git a/npc/items/rand_sc_heal.txt b/npc/items/rand_sc_heal.txt
index 83b19e0b6..ddb2ab194 100644
--- a/npc/items/rand_sc_heal.txt
+++ b/npc/items/rand_sc_heal.txt
@@ -104,30 +104,24 @@ OnUse:
}
*/
- debugmes "PDAVG: %d/%d", .@v, .@d;
- debugmes "Pre PD: %d/%d", @val1, @delay;
-
// If there WAS an effect previously, get ponderate average
if (.@v > 0) {
@val1=ponderate_avg(@val1, @delay, .@v, .@d);
@delay=ponderate_avg(@delay, @val1, .@d, .@v);
}
- debugmes "Post PD: %d/%d", @val1, @delay;
-
// Put the delay in ms
@delay *= 1000;
- debugmes "Ready";
-
// Apply the effect and finish
sc_end .@skill;
sc_start2 .@skill, @delay, @val1, 1;
- debugmes "Done";
-
@delay=0;
@type=0;
@rarity=0;
+ @min=0;
+ @max=0;
+ @val1=0;
end;
}