summaryrefslogtreecommitdiff
path: root/world/map/npc/magic/level2-summon-snakes.txt
diff options
context:
space:
mode:
authormekolat <mekolat@users.noreply.github.com>2016-04-30 18:34:07 -0400
committermekolat <mekolat@users.noreply.github.com>2016-05-02 16:15:32 -0400
commitfdbf26f3203d1298314c1ecdc2fd6942b1f12d17 (patch)
tree4af465e5f6ff5767015b5da06d78e7dcf68b3fcc /world/map/npc/magic/level2-summon-snakes.txt
parent5a2b40ae8c5ad44349872760b60aadc620e6a6b9 (diff)
downloadserverdata-fdbf26f3203d1298314c1ecdc2fd6942b1f12d17.tar.gz
serverdata-fdbf26f3203d1298314c1ecdc2fd6942b1f12d17.tar.bz2
serverdata-fdbf26f3203d1298314c1ecdc2fd6942b1f12d17.tar.xz
serverdata-fdbf26f3203d1298314c1ecdc2fd6942b1f12d17.zip
add puppet check to `halhiss` summon spell
Diffstat (limited to 'world/map/npc/magic/level2-summon-snakes.txt')
-rw-r--r--world/map/npc/magic/level2-summon-snakes.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/world/map/npc/magic/level2-summon-snakes.txt b/world/map/npc/magic/level2-summon-snakes.txt
index 7490c506..2c46f28b 100644
--- a/world/map/npc/magic/level2-summon-snakes.txt
+++ b/world/map/npc/magic/level2-summon-snakes.txt
@@ -3,7 +3,7 @@
end;
OnCast:
- if(call("magic_checks")) end;
+ if(call("magic_checks")) end;
if (Sp < 40) end;
if (getskilllv(SKILL_MAGIC) < .level) end;
if (getskilllv(.school) < .level) end;
@@ -20,6 +20,7 @@ OnCast:
callfunc "magic_exp";
set .@puppet$, "#"+strnpcinfo(0)+"#"+BL_ID;
set .@puppet, puppet(getmap(), POS_X, POS_Y, .@puppet$, 127);
+ if (.@puppet < 1) end;
set .count, (@spellpower/300)+1, .@puppet;
set .master, BL_ID, .@puppet;
set .lifetime, @spellpower*80, .@puppet;