From 52f673df3f3cb64d4a32ffe5775cbe8c8783688d Mon Sep 17 00:00:00 2001 From: mekolat Date: Sat, 30 Apr 2016 18:32:57 -0400 Subject: add puppet check to `helorp` summon spell --- world/map/npc/magic/level2-summon-wickedmushroom.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- cgit v1.2.3-70-g09d2