summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
Diffstat (limited to 'npc')
-rw-r--r--npc/config/magic.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/npc/config/magic.txt b/npc/config/magic.txt
index 2825f3830..2d5d1c649 100644
--- a/npc/config/magic.txt
+++ b/npc/config/magic.txt
@@ -118,11 +118,11 @@ function script SummonMagic {
.@mids=summon("Summoned Monster", .@id, .@lifetime);
.@bhp=getunitdata(.@mids, UDT_MAXHP);
// Each skill level raises HP in 5%
- .@lvx=max(0, (.@lv-1)*.@bhp/20);
+ .@lvx=.@bhp + max(0, (.@lv-1)*.@bhp/20);
// 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);
+ setunitdata(.@mids, UDT_MAXHP, .@lvx);
+ setunitdata(.@mids, UDT_HP, .@lvx);
// Reconfigure monster modes
.@opt=getunitdata(.@mids, UDT_MODE);
// Disable looting