summaryrefslogtreecommitdiff
path: root/world/map/npc/magic/level2-protect.txt
diff options
context:
space:
mode:
Diffstat (limited to 'world/map/npc/magic/level2-protect.txt')
-rw-r--r--world/map/npc/magic/level2-protect.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/world/map/npc/magic/level2-protect.txt b/world/map/npc/magic/level2-protect.txt
index 25cb7c50..7abc9a1a 100644
--- a/world/map/npc/magic/level2-protect.txt
+++ b/world/map/npc/magic/level2-protect.txt
@@ -25,6 +25,8 @@ L_Pay:
addtimer 1500, "Magic Timer::OnClear"; // set the new debuff
sc_start SC_COOLDOWN, 1500, 0, BL_ID;
set Sp, Sp - 14;
+ set CASTS, CASTS + 1;
+ if (CASTS < 0) set CASTS, 1; // overflow
misceffect FX_MAGIC_SHIELD_CAST, strcharinfo(0);
callfunc "magic_exp";
misceffect FX_MAGIC_SHIELD, @args$;