From f6d208ee2580398d61eed595df4e1bfa56f21c1d Mon Sep 17 00:00:00 2001
From: Jesusaves <cpntb1@ymail.com>
Date: Thu, 15 Oct 2020 11:44:40 -0300
Subject: Fix bugs on TMW2_STUDY before I release it by "accident"

---
 npc/magic/study.txt | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/npc/magic/study.txt b/npc/magic/study.txt
index fb6116fae..f61bdbca9 100644
--- a/npc/magic/study.txt
+++ b/npc/magic/study.txt
@@ -21,9 +21,12 @@ function	script	SK_study	{
     // Research Points
     if (array_rfind(@study, @mobGD) < 0) {
         .@mult=max(1, 11-getskilllv(TMW2_STUDY));
-        .@rp=getmonsterinfo(.@mobID, MOB_LV)/.@mult+1;
+        .@rp=getmonsterinfo(.@mobID, MOB_LV)/.@mult;
         array_push(@study, @mobGD);
-        dispbottom l("Research Points +%d", .@rp);
+        if (.@rp) {
+            MAGIC_RP+=.@rp;
+            dispbottom l("Research Points +%d", .@rp);
+        }
     }
 
     // Report
-- 
cgit v1.2.3-70-g09d2