From 01ad15efab31c74b0dbb13e39373cfceaf115a1b Mon Sep 17 00:00:00 2001
From: DarkGod <darkgod@net-core.org>
Date: Sun, 2 Aug 2020 20:50:20 +0200
Subject: [PATCH] Fixed Misdirection and Curse of Nightmares

---
 game/modules/tome/data/talents/cunning/scoundrel.lua | 2 +-
 game/modules/tome/data/timed_effects/other.lua       | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/game/modules/tome/data/talents/cunning/scoundrel.lua b/game/modules/tome/data/talents/cunning/scoundrel.lua
index 0cfda6e093..f70ae0fc89 100644
--- a/game/modules/tome/data/talents/cunning/scoundrel.lua
+++ b/game/modules/tome/data/talents/cunning/scoundrel.lua
@@ -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)
diff --git a/game/modules/tome/data/timed_effects/other.lua b/game/modules/tome/data/timed_effects/other.lua
index 4532aae9ed..6033baf279 100644
--- a/game/modules/tome/data/timed_effects/other.lua
+++ b/game/modules/tome/data/timed_effects/other.lua
@@ -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)
-- 
GitLab