summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--npc/functions/util.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/npc/functions/util.txt b/npc/functions/util.txt
index 0e9255694..969835770 100644
--- a/npc/functions/util.txt
+++ b/npc/functions/util.txt
@@ -335,7 +335,7 @@ function script sk_intcost {
// abizit()
function script abizit {
.@base=(MAGIC_LVL**3);
- return max(MAGIC_EXP/.@base, 5);
+ return min(MAGIC_EXP/.@base, 5);
}