From e33967ae6a9f5b4da37b1175c5e0b909ec501cdb Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Fri, 14 Jan 2022 11:53:55 -0300 Subject: Test and fix some stuff (mana exp and support still untested) --- npc/functions/aurora.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'npc/functions') diff --git a/npc/functions/aurora.txt b/npc/functions/aurora.txt index 8e9c45800..00e1159e1 100644 --- a/npc/functions/aurora.txt +++ b/npc/functions/aurora.txt @@ -572,8 +572,9 @@ function script FYEConf_Olympics { // Modify Magic Skills function script FYE_Olympics_SK { if ($EVENT$ != "Olympics") return; + .@sk=getarg(0, @skillId); - .@sl=getarg(1, @skillLevel); + .@sl=max(getarg(1, @skillLv), 1); .@st=getarg(2, @skillTarget); .@cl = $@MSK_CLASS[.@sk]; @@ -595,6 +596,7 @@ function script FYE_Olympics_SK { .@sk != TMW2_TRANSMIGRATION && .@sk != TMW2_OVHFIRE) FYMOLY_SPAMMY += .@sl; + setq Q_AuroraEvent, getq2(Q_AuroraEvent) + rand2(.@sl + 1); return; } -- cgit v1.2.3-70-g09d2