diff options
Diffstat (limited to 'npc/functions/lockpicks.txt')
-rw-r--r-- | npc/functions/lockpicks.txt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/npc/functions/lockpicks.txt b/npc/functions/lockpicks.txt index 390a01588..ddb14cbd2 100644 --- a/npc/functions/lockpicks.txt +++ b/npc/functions/lockpicks.txt @@ -107,7 +107,8 @@ function script LockPicking { dispbottom l("The lockpick broke."); // Get EXP and inform the success - THIEF_EXP += .@d*.@m-THIEF_RANK; + if (THIEF_RANK) + THIEF_EXP += max(0, .@d*.@m-THIEF_RANK); return 1; } } while (true); |