From 7a08866907468155b6ea56e326e6c23bb8a2b0f0 Mon Sep 17 00:00:00 2001 From: HoraK-FDF Date: Mon, 27 Nov 2023 13:48:01 +0000 Subject: activity checks and casts counting --- world/map/npc/magic/level0-antiprotect.txt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'world/map/npc/magic/level0-antiprotect.txt') 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) -- cgit v1.2.3-60-g2f50