summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--npc/config/magic.txt8
-rw-r--r--npc/magic/kalmurk.txt11
2 files changed, 10 insertions, 9 deletions
diff --git a/npc/config/magic.txt b/npc/config/magic.txt
index 3ffcbbf72..677d7f1e3 100644
--- a/npc/config/magic.txt
+++ b/npc/config/magic.txt
@@ -47,6 +47,10 @@ function script MagicCheck {
dispbottom l("Insufficient mana: @@/@@.", readparam(Sp), .@mp);
return 0;
}
+
+ // Apply mana cost
+ heal 0, 0-.@mp;
+
return 1;
}
@@ -63,10 +67,6 @@ function script SummonMagic {
end;
}
- // EXECUTION
- // Apply costs
- heal 0, 0-.@mp;
-
// Cause effect
// Summoned monsters live from 45 to 60 seconds, and each skill levels grants 10s extra life
// The 35~50 is not a defect, remember skill starts at level 1...
diff --git a/npc/magic/kalmurk.txt b/npc/magic/kalmurk.txt
index 1471180eb..98905c448 100644
--- a/npc/magic/kalmurk.txt
+++ b/npc/magic/kalmurk.txt
@@ -40,17 +40,18 @@ OnCall:
// Summon Magic
// SummonMagic(SkillID, MobID{, MobPerSkillLevel=2{, Level Override}})
- SummonMagic(@sk, Maggot, 2);
+ SummonMagic(@sk, Maggot, 2, abizit()+getskilllv(@sk));
+ // Destroy reagents
delitem MaggotSlime, 2;
- // Get a single mana experience point (this is NOT used by Soul Menhir)
- GetManaExp(@sk, 1);
-
-
// set cooldown
@kalmurk_at=gettimetick(2);
@kalmurk_at=@kalmurk_at+16;
+
+ // Get a single mana experience point (this is NOT used by Soul Menhir)
+ GetManaExp(@sk, abizit()+1);
+
end;
OnInit: