diff options
Diffstat (limited to 'npc/config')
-rw-r--r-- | npc/config/magic.txt | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/npc/config/magic.txt b/npc/config/magic.txt index 1c73a9ab3..c4f4e2912 100644 --- a/npc/config/magic.txt +++ b/npc/config/magic.txt @@ -97,9 +97,14 @@ function script SummonMagic { // 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+abizit()*3); + .@lifetime=rand(35,50)+.@lv*10; + // Abizit makes lifetime vary (like AdjustSpellpower) + .@lifetime = .@lifetime * (80 + abizit() * rand2(5,10)) / 100; + .@mids=summon("Summoned Monster", .@id, .@lifetime); .@bhp=getunitdata(.@mids, UDT_MAXHP); - .@lvx=max(0, (.@lv-1)*.@bhp/50)+abizit(); + .@lvx=max(0, (.@lv-1)*.@bhp/50); + // Abizit makes bonus HP vary (like AdjustSpellpower) + .@lvx = .@lvx * (80 + abizit() * rand2(5,10)) / 100; setunitdata(.@mids, UDT_MAXHP, .@bhp+.@lvx); setunitdata(.@mids, UDT_HP, .@bhp+.@lvx); } |