Skip to content
Snippets Groups Projects
Commit 4c578f1d authored by DarkGod's avatar DarkGod
Browse files

Spectral Sight correctly reveals creatures around your minions

Mirror Image despawns a few turns after leaving combat
parent 24c4205c
No related branches found
No related tags found
No related merge requests found
......@@ -681,6 +681,26 @@ function _M:playerFOV()
end end
end
if self:knowTalent(self.T_SPECTRAL_SIGHT) then
local t = self:getTalentFromId(self.T_SPECTRAL_SIGHT)
local range = self:getTalentRange(t)
local sqsense = range * range
for minion, _ in pairs(game.party.members) do if minion.necrotic_minion and not minion.dead and minion.x then
local arr = minion.fov.actors_dist
local tbl = minion.fov.actors
local act
game.level.map:apply(minion.x, minion.y, 0.6)
game.level.map:applyExtraLite(minion.x, minion.y)
for i = 1, #arr do
act = arr[i]
if act and not act.dead and act.x and tbl[act] and minion:canSee(act) and tbl[act].sqdist <= sqsense then
game.level.map.seens(act.x, act.y, 0.6)
end
end
end end
end
if not self:attr("blind") then
-- Handle infravision/heightened_senses which allow to see outside of lite radius but with LOS
-- Note: Overseer of Nations bonus already factored into attributes
......
......@@ -285,7 +285,7 @@ newTalent{
This image has %d life and can never take more than 1 damage per creature per turn and is immune to any non direct damage (ground effects, damage over time, ...).
Whenever you cast a spell your mirror image will try to duplicate it at the same target for 66%% less damage, if possible. If it can it will loose 1 life, if not it will instead taunt a creature to focus its attention on itself.
While the image exists you receive the damage bonus from the Invisibility spell as if you were invisible.
This spell can not be cast while a Mirror Image already exists and only in combat.
This spell can not be cast while a Mirror Image already exists and only in combat. It will disappear after a few turn when outside of combat.
]])
:tformat(t.getLife(self, t))
end,
......
......@@ -4066,7 +4066,7 @@ newEffect{
eff.last_talent = true
end,
activate = function(self, eff)
self:effectTemporaryValue(eff, "blind_inc_damage", eff.dam)
self:effectTemporaryValue(eff, "blind_inc_damage", eff.dam)
end,
}
......@@ -4081,5 +4081,14 @@ newEffect{
parameters = { dam=10 },
activate = function(self, eff)
self:effectTemporaryValue(eff, "blind_inc_damage", eff.dam)
eff.out_of_combat = 5
end,
on_timeout = function(self, eff)
if not self.in_combat then
eff.out_of_combat = eff.out_of_combat - 1
if eff.out_of_combat <= 0 then
self:die(self)
end
end
end,
}
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