diff options
author | mekolat <mekolat@users.noreply.github.com> | 2016-04-30 21:17:38 -0400 |
---|---|---|
committer | mekolat <mekolat@users.noreply.github.com> | 2016-05-03 20:21:29 -0400 |
commit | bff84139891b9789a13ecee59ace2ab3def3141d (patch) | |
tree | 37504cef9588a0e00374debec6dbe46ccaf7e23c /world | |
parent | d462db3b47bc6f2bf7ad5fa9753dde63f5e77d65 (diff) | |
download | serverdata-bff84139891b9789a13ecee59ace2ab3def3141d.tar.gz serverdata-bff84139891b9789a13ecee59ace2ab3def3141d.tar.bz2 serverdata-bff84139891b9789a13ecee59ace2ab3def3141d.tar.xz serverdata-bff84139891b9789a13ecee59ace2ab3def3141d.zip |
prevent sending multiple end messages for `plugh` spell
Diffstat (limited to 'world')
-rw-r--r-- | world/map/npc/magic/level2-flying-backpack.txt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/world/map/npc/magic/level2-flying-backpack.txt b/world/map/npc/magic/level2-flying-backpack.txt index 87c7d644..36e936fd 100644 --- a/world/map/npc/magic/level2-flying-backpack.txt +++ b/world/map/npc/magic/level2-flying-backpack.txt @@ -22,10 +22,12 @@ set @plugh_time, (@spellpower*500)+5000, @target_id; sc_start SC_FLYING_BACKPACK, @plugh_time, 0, @target_id; message @args$, "Backpack : Your backpack is lifted by a mystical force; you no longer feel it pressing on your back."; - addtimer @plugh_time, strnpcinfo(0)+"::OnEnd", @target_id; + set @plugh_future, gettimetick(0) + @plugh_time - 100, @target_id; + addtimer @plugh_time - 100, strnpcinfo(0)+"::OnEnd", @target_id; end; OnEnd: + if (gettimetick(0) - @plugh_future < 0) end; if (sc_check(SC_FLYING_BACKPACK) != 1) end; message strcharinfo(0), "Backpack : Your backpack is no longer levitating."; misceffect FX_MAGIC_GENERIC, strcharinfo(0); |