summaryrefslogtreecommitdiff
path: root/world/map
diff options
context:
space:
mode:
authormekolat <mekolat@users.noreply.github.com>2016-05-01 21:26:45 -0400
committermekolat <mekolat@users.noreply.github.com>2016-05-01 21:26:45 -0400
commitbcdcf68588639e81b3243342c6fc39946e97de7e (patch)
treee29261b05c3f0a359d8395de7bf252258f77eaa8 /world/map
parentc6bad5e24eacb3ef84a973685ce4fff028c4bc99 (diff)
downloadserverdata-bcdcf68588639e81b3243342c6fc39946e97de7e.tar.gz
serverdata-bcdcf68588639e81b3243342c6fc39946e97de7e.tar.bz2
serverdata-bcdcf68588639e81b3243342c6fc39946e97de7e.tar.xz
serverdata-bcdcf68588639e81b3243342c6fc39946e97de7e.zip
remove attachrid from betsanc spell
Diffstat (limited to 'world/map')
-rw-r--r--world/map/npc/magic/level2-barrier.txt9
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: