summaryrefslogtreecommitdiff
path: root/world/map/npc/magic/level2-arrow-hail.txt
diff options
context:
space:
mode:
authormekolat <mekolat@users.noreply.github.com>2016-05-13 18:55:01 -0400
committermekolat <mekolat@users.noreply.github.com>2016-05-13 18:55:01 -0400
commit6012e5bba5416d04ca3753fce60474b7d3e8c186 (patch)
treeef2a7ebbc2bc5869e58d079231d340f5a8cd6d9c /world/map/npc/magic/level2-arrow-hail.txt
parenteae9517e65cd67d48d085e4fdccf0c61547fec8a (diff)
downloadserverdata-6012e5bba5416d04ca3753fce60474b7d3e8c186.tar.gz
serverdata-6012e5bba5416d04ca3753fce60474b7d3e8c186.tar.bz2
serverdata-6012e5bba5416d04ca3753fce60474b7d3e8c186.tar.xz
serverdata-6012e5bba5416d04ca3753fce60474b7d3e8c186.zip
check for caster Hp in kaflosh and frillyar
Diffstat (limited to 'world/map/npc/magic/level2-arrow-hail.txt')
-rw-r--r--world/map/npc/magic/level2-arrow-hail.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/world/map/npc/magic/level2-arrow-hail.txt b/world/map/npc/magic/level2-arrow-hail.txt
index 35cd584e..6e317232 100644
--- a/world/map/npc/magic/level2-arrow-hail.txt
+++ b/world/map/npc/magic/level2-arrow-hail.txt
@@ -66,7 +66,7 @@ OnNearbyNpc:
end;
OnLaunch:
- if(get(BL_ID, .caster) != .caster) destroy; // destroy if caster is missing
+ if(get(Hp, .caster) < 1) destroy; // destroy if caster is missing
if(getmap(.caster) != strnpcinfo(3)) destroy; // destroy if caster left the map
set .hit, .hit + 1;
if(.hit > .max_hit) destroy;
@@ -93,7 +93,7 @@ OnTimer30000:
destroy;
OnHit:
- if(get(BL_ID, .caster) != .caster) destroy; // destroy if caster is missing
+ 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;