summaryrefslogtreecommitdiff
path: root/world/map/npc/magic/level0-antiprotect.txt
diff options
context:
space:
mode:
Diffstat (limited to 'world/map/npc/magic/level0-antiprotect.txt')
-rw-r--r--world/map/npc/magic/level0-antiprotect.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/world/map/npc/magic/level0-antiprotect.txt b/world/map/npc/magic/level0-antiprotect.txt
index 129d3c62..47106f74 100644
--- a/world/map/npc/magic/level0-antiprotect.txt
+++ b/world/map/npc/magic/level0-antiprotect.txt
@@ -1,6 +1,8 @@
-|script|antiprotect|32767
{
if(call("magic_checks", 1)) end;
+ set CASTS, CASTS + 1;
+ if (CASTS < 0) set CASTS, 1; // overflow
callfunc "magic_exp";
if (@antiprotect)