From 92df6d13708dd5078d62f999c8f195e0ad348613 Mon Sep 17 00:00:00 2001 From: mekolat Date: Wed, 4 May 2016 09:12:14 -0400 Subject: prevent sending multiple end messages for `anwiltyp` spell --- world/map/npc/magic/level2-hide.txt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'world') diff --git a/world/map/npc/magic/level2-hide.txt b/world/map/npc/magic/level2-hide.txt index 6d9c125d..f720dd43 100644 --- a/world/map/npc/magic/level2-hide.txt +++ b/world/map/npc/magic/level2-hide.txt @@ -26,10 +26,12 @@ sc_start SC_HIDE, .@time, 0, @target_id; message @args$, "Magic : You are hidden!"; if (BL_ID != @target_id) message strcharinfo(0), "Magic : You hid someone!"; + set @anwiltyp_future, gettimetick(0) + @anwiltyp_time - 100, @target_id; addtimer @anwiltyp_time, strnpcinfo(0)+"::OnEnd", @target_id; end; OnEnd: + if (gettimetick(0) - @anwiltyp_future < 0) end; if (sc_check(SC_HIDE) != 1) end; message strcharinfo(0), "Magic : You are no longer hidden."; misceffect FX_MAGIC_GENERIC, strcharinfo(0); -- cgit v1.2.3-60-g2f50