diff options
author | mekolat <mekolat@users.noreply.github.com> | 2016-05-02 15:18:44 -0400 |
---|---|---|
committer | mekolat <mekolat@users.noreply.github.com> | 2016-05-02 15:18:44 -0400 |
commit | 65ec6edb3dcbf725360771f882c92a95f101743c (patch) | |
tree | d6d81d62a1d0805e77939cabbeceeebacf54a549 /world/map/npc/magic/level2-barrier.txt | |
parent | a1d3ffc6ddefcb56cbf44f0782f6431b6438580b (diff) | |
parent | a1339b4f44971c1a585bdca04ec8e0f2edc78dbb (diff) | |
download | serverdata-65ec6edb3dcbf725360771f882c92a95f101743c.tar.gz serverdata-65ec6edb3dcbf725360771f882c92a95f101743c.tar.bz2 serverdata-65ec6edb3dcbf725360771f882c92a95f101743c.tar.xz serverdata-65ec6edb3dcbf725360771f882c92a95f101743c.zip |
Merge pull request #498 from mekolat/magic-attach
remove attachrid from magic spells
Diffstat (limited to 'world/map/npc/magic/level2-barrier.txt')
-rw-r--r-- | world/map/npc/magic/level2-barrier.txt | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/world/map/npc/magic/level2-barrier.txt b/world/map/npc/magic/level2-barrier.txt index 9afd4f38..9526ee5a 100644 --- a/world/map/npc/magic/level2-barrier.txt +++ b/world/map/npc/magic/level2-barrier.txt @@ -11,11 +11,7 @@ if (@target_id < 1 || !(isloggedin(@target_id)) || get(INVISIBLE, @target_id) == 1) set @target_id, BL_ID; // fallback to self - set @asorm_caster, BL_ID, @target_id; - if (attachrid(@target_id) != 1) end; - set @target_hat, getequipid(equip_head), @asorm_caster; - if (attachrid(@asorm_caster) != 1) end; - if (@target_hat == 888) end; // FIXME: this whole 5 line block could be done with only one line if we modify getequipid OR make equip_ into params + if (getequipid(equip_head, strcharinfo(0, @target_id)) == 888) end; set @_M_BLOCK, 1; // block casting, until the timer clears it addtimer 1000, "Magic Timer::OnClear"; // set the new debuff @@ -31,8 +27,7 @@ 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."; - if (attachrid(@target_id) != 1) end; - addtimer @asorm_time, strnpcinfo(0)+"::OnEnd"; + addtimer @asorm_time, strnpcinfo(0)+"::OnEnd", @target_id; end; OnEnd: |