From 67543201d8646c059b3928d14c2591c02168237a Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Thu, 15 Apr 2021 14:45:36 -0300 Subject: Joyplim, Frillyar and Kalmurk --- npc/magic/config.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'npc/magic/config.txt') diff --git a/npc/magic/config.txt b/npc/magic/config.txt index 2cede16a..a179982c 100644 --- a/npc/magic/config.txt +++ b/npc/magic/config.txt @@ -160,13 +160,14 @@ function script SK_summon { .@amt=getarg(1); .@mex=getarg(2, 1); .@sum=getarg(3, true); + .@lvl=getskilllv(SKILL_MAGIC); if ($@GM_OVERRIDE || debug) debugmes "Skill "+@skillId+" Lv "+@skillLv; - if (ispcdead()) + if (ispcdead() || !.@lvl || !@skillLv) return; if (rand2(10) < abizit()) { // Summon Magic (with magic level bonus) - SummonMagic(@skillId, .@mob, .@amt, MAGIC_LVL+@skillLv-1, @skillLv, .@sum); + SummonMagic(@skillId, .@mob, .@amt, .@lvl+@skillLv-1, @skillLv, .@sum); } else if (rand2(10) < abizit()) { // Re-roll dispbottom l("You cannot complete the casting correctly!"); -- cgit v1.2.3-70-g09d2