summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormekolat <mekolat@users.noreply.github.com>2016-05-01 20:52:51 -0400
committermekolat <mekolat@users.noreply.github.com>2016-05-01 20:52:51 -0400
commit197d9c360111ba47c4ffba3bdba274ea440314c1 (patch)
treeef0ead9c7e4552d66e847e13f1255c7def51f225
parent5a907c26b3d25fda31ca85c899068e0e99697ca8 (diff)
downloadserverdata-197d9c360111ba47c4ffba3bdba274ea440314c1.tar.gz
serverdata-197d9c360111ba47c4ffba3bdba274ea440314c1.tar.bz2
serverdata-197d9c360111ba47c4ffba3bdba274ea440314c1.tar.xz
serverdata-197d9c360111ba47c4ffba3bdba274ea440314c1.zip
remove attachrid from kaflosh spell
-rw-r--r--world/map/npc/magic/level2-rain.txt12
1 files changed, 6 insertions, 6 deletions
diff --git a/world/map/npc/magic/level2-rain.txt b/world/map/npc/magic/level2-rain.txt
index d3718170..32a2c0f8 100644
--- a/world/map/npc/magic/level2-rain.txt
+++ b/world/map/npc/magic/level2-rain.txt
@@ -63,8 +63,8 @@ L_Tree:
close;
OnLaunch:
- if(attachrid(.caster) != 1) destroy; // destroy if caster is missing
- if(getmap() != strnpcinfo(3)) destroy; // destroy if caster left the map
+ if(get(BL_ID, .caster) != .caster) destroy; // destroy if caster is missing
+ if(getmap(.caster) != strnpcinfo(3)) destroy; // destroy if caster left the map
set .count, .count + 1;
if(.count > .max) destroy;
set .launch, 0;
@@ -75,14 +75,14 @@ OnLaunch:
S_Launch:
npcareawarp .initial_x - .radius, .initial_y - .radius, .initial_x + .radius, .initial_y + .radius, 0, strnpcinfo(0);
misceffect FX_RAIN;
- foreach 2, strnpcinfo(3), getnpcx()-1, getnpcy()-1, getnpcx()+1, getnpcy()+1, strnpcinfo(0) + "::OnHit";
+ foreach 2, strnpcinfo(3), getnpcx()-1, getnpcy()-1, getnpcx()+1, getnpcy()+1, strnpcinfo(0) + "::OnHit", .caster;
set .launch, .launch + 1;
if(.launch < .max_launch) goto S_Launch;
return;
OnHit:
- if(attachrid(.caster) != 1) destroy; // destroy if caster is missing
- if(getmap() != strnpcinfo(3)) destroy; // destroy if caster left the map
+ if(get(BL_ID, .caster) != .caster) destroy; // destroy if caster is missing
+ if(getmap(.caster) != strnpcinfo(3)) destroy; // destroy if caster left the map
if(target(.caster, @target_id, 16) != 16 && .caster != @target_id) end;
if((get(BL_TYPE, @target_id) & 1) == 0) end; // either mob or pc
if(get(ELTTYPE, @target_id) == ELT_FIRE)
@@ -90,7 +90,7 @@ OnHit:
end;
OnDestroy:
- debugmes "kaflosh timeout! [this shouldn't happen]";
+ debugmes "kaflosh timeout! [this shouldn't happen]"; // XXX: looks like this CAN happen with higher levels of magic, so we might want to cap max charges
destroy;
OnInit: