summaryrefslogtreecommitdiff
path: root/world/map/npc/magic/level2-rain.txt
diff options
context:
space:
mode:
authorgumi <git@gumi.ca>2018-01-29 14:53:51 -0500
committergumi <git@gumi.ca>2018-01-29 14:53:51 -0500
commitc7191a2781b8df6c0bfcb786e02ee760e66d246c (patch)
tree477e403324df631d3224bbeb81c5826a6ba43c84 /world/map/npc/magic/level2-rain.txt
parent532363909f291f7e7aa102c34a82615aec92cf8f (diff)
downloadserverdata-c7191a2781b8df6c0bfcb786e02ee760e66d246c.tar.gz
serverdata-c7191a2781b8df6c0bfcb786e02ee760e66d246c.tar.bz2
serverdata-c7191a2781b8df6c0bfcb786e02ee760e66d246c.tar.xz
serverdata-c7191a2781b8df6c0bfcb786e02ee760e66d246c.zip
fix another crash
Diffstat (limited to 'world/map/npc/magic/level2-rain.txt')
-rw-r--r--world/map/npc/magic/level2-rain.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/world/map/npc/magic/level2-rain.txt b/world/map/npc/magic/level2-rain.txt
index c088acf4..bf13a628 100644
--- a/world/map/npc/magic/level2-rain.txt
+++ b/world/map/npc/magic/level2-rain.txt
@@ -64,6 +64,7 @@ L_Tree:
close;
OnLaunch:
+ if (!isloggedin(.caster)) destroy;
if(get(Hp, .caster) < 1) destroy; // destroy if caster is missing
if(getmap(.caster) != strnpcinfo(3)) destroy; // destroy if caster left the map
set .count, .count + 1;
@@ -82,6 +83,7 @@ S_Launch:
return;
OnHit:
+ if (!isloggedin(.caster)) destroy;
if(get(Hp, .caster) < 1) 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;