diff --git a/game/modules/tome/data/talents/spells/necrotic-minions.lua b/game/modules/tome/data/talents/spells/necrotic-minions.lua index fba4b3580dbe33652f9b38cf52b08fa6680f5900..d5d66c31e4d729de92c52d30e58ce483b055105f 100644 --- a/game/modules/tome/data/talents/spells/necrotic-minions.lua +++ b/game/modules/tome/data/talents/spells/necrotic-minions.lua @@ -609,7 +609,6 @@ local function makeMinion(self, lev) for k, e in pairs(chances) do for i = 1, e do list[#list+1] = k end tot = tot + e end local m = require("mod.class.NPC").new(minions_list[rng.table(list)]) - m.max_level = self.level return m end diff --git a/game/modules/tome/data/talents/spells/spells.lua b/game/modules/tome/data/talents/spells/spells.lua index 854b884cb58b4702954aba332dbf55d462458e88..3ccd8aa88d3a648592179eac549b60e19f4a4c6b 100644 --- a/game/modules/tome/data/talents/spells/spells.lua +++ b/game/modules/tome/data/talents/spells/spells.lua @@ -174,6 +174,7 @@ function necroSetupSummon(self, m, x, y, level, no_control) }) end m:resolve() m:resolve(nil, true) + m.max_level = self.level + (level or 0) m:forceLevelup(math.max(1, self.level + (level or 0))) game.zone:addEntity(game.level, m, "actor", x, y) game.level.map:particleEmitter(x, y, 1, "summon")