Skip to content
Snippets Groups Projects
Commit 57418eef authored by Sheila's avatar Sheila
Browse files

Aura Mastery has a 25% chance to return a soul when your minions die inside...

Aura Mastery has a 25% chance to return a soul when your minions die inside it, starting from effective level 3.
parent ee16bbb9
No related branches found
No related tags found
1 merge request!393Necro buffs
......@@ -215,11 +215,17 @@ function necroSetupSummon(self, m, x, y, level, no_control, no_decay)
local src = self.summoner
local w = src:isTalentActive(src.T_WILL_O__THE_WISP)
local p = src:isTalentActive(src.T_NECROTIC_AURA)
if not w or not p or not self.x or not self.y or not src.x or not src.y or core.fov.distance(self.x, self.y, src.x, src.y) > self.summoner.necrotic_aura_radius then return end
if not rng.percent(w.chance) then return end
local t = src:getTalentFromId(src.T_WILL_O__THE_WISP)
t.summon(src, t, w.dam, self, killer)
if not p or not self.x or not self.y or not src.x or not src.y or core.fov.distance(self.x, self.y, src.x, src.y) > self.summoner.necrotic_aura_radius then return end
if w and rng.percent(w.chance) then
local t = src:getTalentFromId(src.T_WILL_O__THE_WISP)
ret = t.summon(src, t, w.dam, self, killer)
if ret then return end
end
if src:getTalentLevel(src.T_AURA_MASTERY) >= 3 and rng.percent(25) then
src:incSoul(1)
src.changed = true
game.logPlayer(src, "A soul returns to %s.", src.name)
end
end
-- Summons never flee
......
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