From ef5f6f44ac547ea820c701135735733276b85526 Mon Sep 17 00:00:00 2001 From: DarkGod <darkgod@net-core.org> Date: Sat, 31 Oct 2020 15:03:59 +0100 Subject: [PATCH] Surge of Undeath provides a small passive regen to all minions --- game/modules/tome/data/talents/spells/master-necromancer.lua | 3 ++- game/modules/tome/data/talents/spells/spells.lua | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/game/modules/tome/data/talents/spells/master-necromancer.lua b/game/modules/tome/data/talents/spells/master-necromancer.lua index 1fe4c64c62..a368231572 100644 --- a/game/modules/tome/data/talents/spells/master-necromancer.lua +++ b/game/modules/tome/data/talents/spells/master-necromancer.lua @@ -101,7 +101,8 @@ newTalent{ All non-ghoul minions are healed by %d%%. If you know Call of the Mausoleum, the time remaining to the next free ghoul is reduced by %d. if you know Corpse Explosion or Putrescent Liquefaction the duration of those effects are increased by %d. - All non-undead foes caught inside are dazed for %d turns.]]): + All non-undead foes caught inside are dazed for %d turns. + In addition all your minions (created after you learn this spell) have a passive health regeneration.]]): tformat(t:_getSpeed(self), t:_getHeal(self), t:_getGhoulDur(self), t:_getGhoulDur(self), t:_getDaze(self)) end, } diff --git a/game/modules/tome/data/talents/spells/spells.lua b/game/modules/tome/data/talents/spells/spells.lua index 6b5f61b440..53f4c01e06 100644 --- a/game/modules/tome/data/talents/spells/spells.lua +++ b/game/modules/tome/data/talents/spells/spells.lua @@ -209,6 +209,10 @@ function necroSetupSummon(self, def, x, y, level, turns, no_control) game.logSeen(self, "#GREY#%s can not be healed this way!", self:getName():capitalize()) end + if self:knowTalent(self.T_SURGE_OF_UNDEATH) then + m.life_regen = 0.5 + end + if self:isTalentActive(self.T_NECROTIC_AURA) then local t = self:getTalentFromId(self.T_NECROTIC_AURA) local perc = t:_getInherit(self) / 100 -- GitLab