summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
Diffstat (limited to 'npc')
-rw-r--r--npc/functions/util.txt7
1 files changed, 5 insertions, 2 deletions
diff --git a/npc/functions/util.txt b/npc/functions/util.txt
index f41c343fc..835eae988 100644
--- a/npc/functions/util.txt
+++ b/npc/functions/util.txt
@@ -639,12 +639,15 @@ function script mlearn {
next;
if (askyesno() == ASK_NO)
return true;
- if (countitem(.@it) < .@am)
+ if (countitem(.@it) < .@am && !(countitem(ScholarshipBadge)))
return false;
if (!sk_canlvup(.@ap))
return false;
- delitem .@it, .@am;
+ if (countitem(ScholarshipBadge))
+ delitem ScholarshipBadge, 1;
+ else
+ delitem .@it, .@am;
sk_lvup(.@sk, .@ap);
return true;
}