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/level2-flying-backpack.txt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'world/map/npc/magic/level2-flying-backpack.txt') diff --git a/world/map/npc/magic/level2-flying-backpack.txt b/world/map/npc/magic/level2-flying-backpack.txt index c6d3c461..994e4084 100644 --- a/world/map/npc/magic/level2-flying-backpack.txt +++ b/world/map/npc/magic/level2-flying-backpack.txt @@ -23,6 +23,8 @@ L_Pay: addtimer 1000, "Magic Timer::OnClear"; // set the new debuff sc_start SC_COOLDOWN, 1000, 0, BL_ID; set Sp, Sp - 12; + set CASTS, CASTS + 1; + if (CASTS < 0) set CASTS, 1; // overflow misceffect FX_MAGIC_FLYING_CAST, strcharinfo(0); callfunc "magic_exp"; if (BL_ID != @target_id) misceffect FX_MAGIC_FLYING_HIT, @args$; -- cgit v1.2.3-60-g2f50