diff options
author | mekolat <mekolat@users.noreply.github.com> | 2016-04-30 21:13:26 -0400 |
---|---|---|
committer | mekolat <mekolat@users.noreply.github.com> | 2016-05-03 20:21:13 -0400 |
commit | 8279b36fe83a9029abb29340c8230edc02d4000c (patch) | |
tree | 0cbf1fa811761806526a9cea8c8eee035b0478c2 /world/map/npc/magic/level2-protect.txt | |
parent | f8924867ee3e1020cb9fc73df98c22218a52ad2f (diff) | |
download | classic-serverdata-8279b36fe83a9029abb29340c8230edc02d4000c.tar.gz classic-serverdata-8279b36fe83a9029abb29340c8230edc02d4000c.tar.bz2 classic-serverdata-8279b36fe83a9029abb29340c8230edc02d4000c.tar.xz classic-serverdata-8279b36fe83a9029abb29340c8230edc02d4000c.zip |
prevent sending multiple end messages for `betsanc` spell
Diffstat (limited to 'world/map/npc/magic/level2-protect.txt')
-rw-r--r-- | world/map/npc/magic/level2-protect.txt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/world/map/npc/magic/level2-protect.txt b/world/map/npc/magic/level2-protect.txt index 659efdc1..b68265d1 100644 --- a/world/map/npc/magic/level2-protect.txt +++ b/world/map/npc/magic/level2-protect.txt @@ -29,10 +29,12 @@ set @betsanc_time, .@time, @target_id; sc_start SC_PHYS_SHIELD, .@time, max(15,(@spellpower/20))+5, @target_id; message @args$, "Shield : You feel more protected."; - addtimer @betsanc_time, strnpcinfo(0)+"::OnEnd", @target_id; + set @betsanc_future, gettimetick(0) + @betsanc_time - 100, @target_id; + addtimer @betsanc_time - 100, strnpcinfo(0)+"::OnEnd", @target_id; end; OnEnd: + if (gettimetick(0) - @betsanc_future < 0) end; if (sc_check(SC_PHYS_SHIELD) != 1) end; message strcharinfo(0), "Shield : You feel less protected."; misceffect FX_MAGIC_SHIELD_ENDS, strcharinfo(0); |