diff options
author | mekolat <mekolat@users.noreply.github.com> | 2016-04-30 21:17:09 -0400 |
---|---|---|
committer | mekolat <mekolat@users.noreply.github.com> | 2016-05-03 20:21:23 -0400 |
commit | d462db3b47bc6f2bf7ad5fa9753dde63f5e77d65 (patch) | |
tree | 77bdb533a6b1179c60d00f3e88df3afe34330f35 /world/map/npc/magic | |
parent | 8279b36fe83a9029abb29340c8230edc02d4000c (diff) | |
download | serverdata-d462db3b47bc6f2bf7ad5fa9753dde63f5e77d65.tar.gz serverdata-d462db3b47bc6f2bf7ad5fa9753dde63f5e77d65.tar.bz2 serverdata-d462db3b47bc6f2bf7ad5fa9753dde63f5e77d65.tar.xz serverdata-d462db3b47bc6f2bf7ad5fa9753dde63f5e77d65.zip |
prevent sending multiple end messages for `asorm` spell
Diffstat (limited to 'world/map/npc/magic')
-rw-r--r-- | world/map/npc/magic/level2-barrier.txt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/world/map/npc/magic/level2-barrier.txt b/world/map/npc/magic/level2-barrier.txt index 9526ee5a..3b7ffb77 100644 --- a/world/map/npc/magic/level2-barrier.txt +++ b/world/map/npc/magic/level2-barrier.txt @@ -27,10 +27,12 @@ set @asorm_time, .@time, @target_id; sc_start SC_MBARRIER, .@time, max(30,(@spellpower/8))+20, @target_id; message @args$, "Barrier : You are surrounded by a magical barrier."; - addtimer @asorm_time, strnpcinfo(0)+"::OnEnd", @target_id; + set @asorm_future, gettimetick(0) + @asorm_time - 100, @target_id; + addtimer @asorm_time - 100, strnpcinfo(0)+"::OnEnd", @target_id; end; OnEnd: + if (gettimetick(0) - @asorm_future < 0) end; if (sc_check(SC_MBARRIER) != 1) end; message strcharinfo(0), "Barrier : Your magical barrier dissipates."; misceffect FX_MAGIC_DEFAULT, strcharinfo(0); |