summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--npc/config/magic.txt7
1 files changed, 4 insertions, 3 deletions
diff --git a/npc/config/magic.txt b/npc/config/magic.txt
index 290f0410f..1c73a9ab3 100644
--- a/npc/config/magic.txt
+++ b/npc/config/magic.txt
@@ -95,10 +95,11 @@ function script SummonMagic {
// 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...
+ // PS. Abizit gives 3s per level, and +1 HP per level
for (.@i = 0; .@i < (.@lv+(.@adj-1))/.@adj; .@i++) {
- .@mids=summon("Summoned Monster", .@id, rand(35,50)+.@lv*10);
+ .@mids=summon("Summoned Monster", .@id, rand(35,50)+.@lv*10+abizit()*3);
.@bhp=getunitdata(.@mids, UDT_MAXHP);
- .@lvx=max(0, (.@lv-1)*.@bhp/50);
+ .@lvx=max(0, (.@lv-1)*.@bhp/50)+abizit();
setunitdata(.@mids, UDT_MAXHP, .@bhp+.@lvx);
setunitdata(.@mids, UDT_HP, .@bhp+.@lvx);
}
@@ -145,7 +146,7 @@ function script SK_summon {
.@mex=getarg(2);
if ($@GM_OVERRIDE || debug) debugmes "Skill "+@skillId+" Lv "+@skillLv;
- if (rand2(1,6) < abizit()+1) {
+ if (rand2(5) < abizit()) {
// Summon Magic (with magic level bonus)
SummonMagic(@skillId, .@mob, .@amt, MAGIC_LVL+@skillLv-1, @skillLv);
} else {