From 3d8d11f13eeaf96d916a916faae4442516a49916 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sun, 30 Jun 2024 12:11:50 -0300 Subject: Fix exploit in Olympics Friendly Skills --- npc/functions/aurora.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/npc/functions/aurora.txt b/npc/functions/aurora.txt index 3c5708e16..9d871ef65 100644 --- a/npc/functions/aurora.txt +++ b/npc/functions/aurora.txt @@ -594,13 +594,19 @@ function script FYE_Olympics_SK { .@sk=getarg(0, @skillId); .@sl=max(getarg(1, @skillLv), 1); .@st=getarg(2, @skillTarget); + if (.@st < 1) + consolebug("Skill target not set for FYE_OLYMPICS_SK Skill ID %d", .@sk); + .@bl=getunittype(.@st); .@cl = $@MSK_CLASS[.@sk]; // Supportive if (.@cl == CLASS_SCHOLARSHIP && .@st != getcharid(3) && .@st > 1 && + .@bl != BL_MOB && + .@bl != BL_PET && + .@bl != BL_NPC && .@sk != SM_PROVOKE && .@sk != EVOL_AREA_PROVOKE) FYMOLY_FRIEND += 1; -- cgit v1.2.3-70-g09d2