summaryrefslogtreecommitdiff
path: root/world/map/npc/magic/level2-summon-spiky-mushroom.txt
diff options
context:
space:
mode:
authormekolat <mekolat@users.noreply.github.com>2016-04-30 18:33:32 -0400
committermekolat <mekolat@users.noreply.github.com>2016-05-02 16:15:16 -0400
commit5a2b40ae8c5ad44349872760b60aadc620e6a6b9 (patch)
tree871eee290d3a66f6888cae4ca1c266d038d8b3b4 /world/map/npc/magic/level2-summon-spiky-mushroom.txt
parent52f673df3f3cb64d4a32ffe5775cbe8c8783688d (diff)
downloadserverdata-5a2b40ae8c5ad44349872760b60aadc620e6a6b9.tar.gz
serverdata-5a2b40ae8c5ad44349872760b60aadc620e6a6b9.tar.bz2
serverdata-5a2b40ae8c5ad44349872760b60aadc620e6a6b9.tar.xz
serverdata-5a2b40ae8c5ad44349872760b60aadc620e6a6b9.zip
add puppet check to `kalrenk` summon spell
Diffstat (limited to 'world/map/npc/magic/level2-summon-spiky-mushroom.txt')
-rw-r--r--world/map/npc/magic/level2-summon-spiky-mushroom.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/world/map/npc/magic/level2-summon-spiky-mushroom.txt b/world/map/npc/magic/level2-summon-spiky-mushroom.txt
index 39ad9ecd..5659fc32 100644
--- a/world/map/npc/magic/level2-summon-spiky-mushroom.txt
+++ b/world/map/npc/magic/level2-summon-spiky-mushroom.txt
@@ -3,7 +3,7 @@
end;
OnCast:
- if(call("magic_checks")) end;
+ if(call("magic_checks")) end;
if (Sp < 33) end;
if (getskilllv(SKILL_MAGIC) < .level) end;
if (getskilllv(.school) < .level) end;
@@ -19,6 +19,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/120)+1, .@puppet;
set .master, BL_ID, .@puppet;
set .lifetime, @spellpower*400, .@puppet;