diff options
author | mekolat <mekolat@users.noreply.github.com> | 2016-05-04 09:12:14 -0400 |
---|---|---|
committer | mekolat <mekolat@users.noreply.github.com> | 2016-05-04 09:12:14 -0400 |
commit | 92df6d13708dd5078d62f999c8f195e0ad348613 (patch) | |
tree | aa49e7be688234d5cc46f08fccfe81945d7afce7 /world/map/npc/magic | |
parent | 4656ee715ec17ba4246c826758679c3d7bd12e71 (diff) | |
download | serverdata-92df6d13708dd5078d62f999c8f195e0ad348613.tar.gz serverdata-92df6d13708dd5078d62f999c8f195e0ad348613.tar.bz2 serverdata-92df6d13708dd5078d62f999c8f195e0ad348613.tar.xz serverdata-92df6d13708dd5078d62f999c8f195e0ad348613.zip |
prevent sending multiple end messages for `anwiltyp` spell
Diffstat (limited to 'world/map/npc/magic')
-rw-r--r-- | world/map/npc/magic/level2-hide.txt | 2 |
1 files changed, 2 insertions, 0 deletions
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); |