Skip to content
Snippets Groups Projects
Commit 01ad15ef authored by DarkGod's avatar DarkGod
Browse files

Fixed Misdirection and Curse of Nightmares

parent 6fd17912
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -129,7 +129,7 @@ newTalent{
end
end,
callbackOnTemporaryEffect = function(self, eff, eff_id, e, p)
if e.status ~= "detrimental" or e.type ~= "physical" or not (p.src and p.src._is_actor) then return end
if e.status ~= "detrimental" or e.type ~= "physical" or not (p.src and p.src.__is_actor) then return end
local chance = self:callTalent(self.T_MISDIRECTION, "getChance")
if not rng.percent(chance) then return end
game.logSeen(self, "#ORANGE#%s redirects the effect '%s'!#LAST#", self:getName():capitalize(), e.desc)
......
......@@ -1553,11 +1553,11 @@ newEffect{
(function()
local def, level, bonusLevel = self.tempeffect_def[self.EFF_CURSE_OF_NIGHTMARES], eff.level, math.min(eff.unlockLevel, eff.level)
if math.min(eff.unlockLevel, eff.level) >= 3 then
--if e.status == "detrimental" and not e.subtype["cross tier"] and p.src and p.src._is_actor and not p.src.dead then
--if e.status == "detrimental" and not e.subtype["cross tier"] and p.src and p.src.__is_actor and not p.src.dead then
--local e = self.tempeffect_def[eff_id]
if e.status ~= "detrimental" or e.type == "other" or e.subtype["cross tier"] then return end
local harrowDam = def.getHarrowDam(self, level)
if p.src and p.src._is_actor then
if p.src and p.src.__is_actor then
DamageType:get(DamageType.MIND).projector(self, p.src.x, p.src.y, DamageType.MIND, harrowDam)
DamageType:get(DamageType.MIND).projector(self, p.src.x, p.src.y, DamageType.DARKNESS, harrowDam)
--game.logSeen(self, "#F53CBE#%s harrows '%s'!", self:getName():capitalize(), p.src.name)
......
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