summaryrefslogtreecommitdiff
path: root/world/map
diff options
context:
space:
mode:
authormekolat <mekolat@users.noreply.github.com>2016-04-30 18:37:55 -0400
committermekolat <mekolat@users.noreply.github.com>2016-05-02 16:16:31 -0400
commit3ad45c53e32f0700f68c429fd818372d9892c6d8 (patch)
tree22bde1b4723e9a653722afd898354c3ef422e034 /world/map
parentf26426d583414ff8c334ce2d1147c28e262d1b21 (diff)
downloadserverdata-3ad45c53e32f0700f68c429fd818372d9892c6d8.tar.gz
serverdata-3ad45c53e32f0700f68c429fd818372d9892c6d8.tar.bz2
serverdata-3ad45c53e32f0700f68c429fd818372d9892c6d8.tar.xz
serverdata-3ad45c53e32f0700f68c429fd818372d9892c6d8.zip
add puppet check to `kalmurk` summon spell
Diffstat (limited to 'world/map')
-rw-r--r--world/map/npc/magic/level1-summon-maggots.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/world/map/npc/magic/level1-summon-maggots.txt b/world/map/npc/magic/level1-summon-maggots.txt
index aa4e646f..49022635 100644
--- a/world/map/npc/magic/level1-summon-maggots.txt
+++ b/world/map/npc/magic/level1-summon-maggots.txt
@@ -18,6 +18,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, ((sqrt(@spellpower)+(@spellpower/15))/5)+1, .@puppet;
set .master, BL_ID, .@puppet;
set .lifetime, (@spellpower*50)+10000, .@puppet;