Skip to content
Snippets Groups Projects
Commit 206d09e1 authored by dg's avatar dg
Browse files

Necrotic Minions will decay if their Necromancer is dead

git-svn-id: http://svn.net-core.org/repos/t-engine4@4509 51575b47-30f0-44d4-a5cc-537603b46e54
parent da40b2f9
No related branches found
No related tags found
No related merge requests found
......@@ -183,7 +183,7 @@ function necroSetupSummon(self, m, x, y, level, no_control)
m.on_act = function(self)
local src = self.summoner
local p = src:isTalentActive(src.T_NECROTIC_AURA)
if p and self.x and self.y and src.x and src.y and core.fov.distance(self.x, self.y, src.x, src.y) <= self.summoner.necrotic_aura_radius then return end
if p and self.x and self.y and not src.dead and src.x and src.y and core.fov.distance(self.x, self.y, src.x, src.y) <= self.summoner.necrotic_aura_radius then return end
self.life = self.life - self.max_life * (p and p.necrotic_aura_decay or 10) / 100
self.changed = true
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment