diff options
author | Jesusaves <cpntb1@ymail.com> | 2024-06-30 12:11:50 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2024-06-30 12:11:50 -0300 |
commit | 3d8d11f13eeaf96d916a916faae4442516a49916 (patch) | |
tree | 3a87a36e355d934fbda9e5da0b311f9675181d10 | |
parent | 77e0e7eace50e539950ed242d9aa65d0e25609f2 (diff) | |
download | serverdata-3d8d11f13eeaf96d916a916faae4442516a49916.tar.gz serverdata-3d8d11f13eeaf96d916a916faae4442516a49916.tar.bz2 serverdata-3d8d11f13eeaf96d916a916faae4442516a49916.tar.xz serverdata-3d8d11f13eeaf96d916a916faae4442516a49916.zip |
Fix exploit in Olympics Friendly Skills
-rw-r--r-- | npc/functions/aurora.txt | 6 |
1 files changed, 6 insertions, 0 deletions
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; |