summaryrefslogtreecommitdiff
path: root/world/map/npc
diff options
context:
space:
mode:
authormekolat <mekolat@users.noreply.github.com>2016-04-30 18:32:57 -0400
committermekolat <mekolat@users.noreply.github.com>2016-05-02 16:15:09 -0400
commit52f673df3f3cb64d4a32ffe5775cbe8c8783688d (patch)
tree9614c70f65d8ca8a058fbbafb6be15979cfad52c /world/map/npc
parentc30bc8dbcd7e7f089eeb06b7cebbc7d7d514ad42 (diff)
downloadserverdata-52f673df3f3cb64d4a32ffe5775cbe8c8783688d.tar.gz
serverdata-52f673df3f3cb64d4a32ffe5775cbe8c8783688d.tar.bz2
serverdata-52f673df3f3cb64d4a32ffe5775cbe8c8783688d.tar.xz
serverdata-52f673df3f3cb64d4a32ffe5775cbe8c8783688d.zip
add puppet check to `helorp` summon spell
Diffstat (limited to 'world/map/npc')
-rw-r--r--world/map/npc/magic/level2-summon-wickedmushroom.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/world/map/npc/magic/level2-summon-wickedmushroom.txt b/world/map/npc/magic/level2-summon-wickedmushroom.txt
index df17742f..02442c6b 100644
--- a/world/map/npc/magic/level2-summon-wickedmushroom.txt
+++ b/world/map/npc/magic/level2-summon-wickedmushroom.txt
@@ -3,7 +3,7 @@
end;
OnCast:
- if(call("magic_checks")) end;
+ if(call("magic_checks")) end;
if (Sp < 35) 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/250)+1, .@puppet;
set .master, BL_ID, .@puppet;
set .lifetime, @spellpower*80, .@puppet;