summaryrefslogtreecommitdiff
path: root/world/map/npc/magic/level0-discharge.txt
diff options
context:
space:
mode:
Diffstat (limited to 'world/map/npc/magic/level0-discharge.txt')
-rw-r--r--world/map/npc/magic/level0-discharge.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/world/map/npc/magic/level0-discharge.txt b/world/map/npc/magic/level0-discharge.txt
index 7b2cfa8c..17d1da76 100644
--- a/world/map/npc/magic/level0-discharge.txt
+++ b/world/map/npc/magic/level0-discharge.txt
@@ -1,6 +1,8 @@
-|script|discharge spell|32767
{
if(call("magic_checks")) end;
+ set CASTS, CASTS + 1;
+ if (CASTS < 0) set CASTS, 1; // overflow
callfunc "magic_exp";
// tell the spells they were discharged