summaryrefslogtreecommitdiff
path: root/npc/functions
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2022-10-03 15:47:09 -0300
committerJesusaves <cpntb1@ymail.com>2022-10-03 15:47:09 -0300
commitc239c66a329835baeb9658a515affd821b6738d9 (patch)
tree519a44c8bf16c832b1ca5b2534120c4ab70c85ce /npc/functions
parentac019d8aa9dc090025b06c62c10e27c042b2dd10 (diff)
downloadserverdata-c239c66a329835baeb9658a515affd821b6738d9.tar.gz
serverdata-c239c66a329835baeb9658a515affd821b6738d9.tar.bz2
serverdata-c239c66a329835baeb9658a515affd821b6738d9.tar.xz
serverdata-c239c66a329835baeb9658a515affd821b6738d9.zip
This dumb clause should do the trick
Diffstat (limited to 'npc/functions')
-rw-r--r--npc/functions/mobpoint.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/npc/functions/mobpoint.txt b/npc/functions/mobpoint.txt
index 016177f5b..89fd4f37b 100644
--- a/npc/functions/mobpoint.txt
+++ b/npc/functions/mobpoint.txt
@@ -26,6 +26,11 @@ function script mobpoint {
// Penalty/Bonus
.@base=(.@moblv-BaseLevel);
+
+ // Rebirth exploit correction
+ if (.@base > 20 && REBIRTH && BaseLevel < 16)
+ .@base = 20;
+
if (BaseLevel < .@moblv) {
// Target is stronger, +3% per monster level, capped at +75%
.@addval = .@addval * limit(100, 100+(.@base*3), 175) / 100;