diff --git a/game/engines/default/engine/Zone.lua b/game/engines/default/engine/Zone.lua
index ff7e9910119d5781b78e72e2f79ef7916814c9a7..1a3551bb01683b3ca72c75aee8a7500baa7113b9 100644
--- a/game/engines/default/engine/Zone.lua
+++ b/game/engines/default/engine/Zone.lua
@@ -22,7 +22,7 @@ local Savefile = require "engine.Savefile"
 local Dialog = require "engine.ui.Dialog"
 local Map = require "engine.Map"
 local Astar = require "engine.Astar"
---local print = function() end
+local print = function() end
 
 --- Defines a zone: a set of levels, with depth, nps, objects, level generator, ...
 module(..., package.seeall, class.make)
diff --git a/game/modules/tome/data/talents/corruptions/bone.lua b/game/modules/tome/data/talents/corruptions/bone.lua
index 5c0bea976c634d2dbe0538e212ba1739a58692b8..2263bf211e162b26622537ac687cea720d5db701 100644
--- a/game/modules/tome/data/talents/corruptions/bone.lua
+++ b/game/modules/tome/data/talents/corruptions/bone.lua
@@ -124,7 +124,7 @@ newTalent{
 		local pid = table.remove(p.particles)
 		if pid then self:removeParticles(pid) end
 		if #p.particles <= 0 then
-			if self:isTalentActive(t) then self:forceUseTalent(t.id, {ignore_energy=true}) end
+			if self:isTalentActive(t.id) then self:forceUseTalent(t.id, {ignore_energy=true}) end
 		end
 	end,
 	activate = function(self, t)
diff --git a/game/modules/tome/data/talents/corruptions/shadowflame.lua b/game/modules/tome/data/talents/corruptions/shadowflame.lua
index 6abace2075da1c398ad9f1dd7395ab1a26e585dc..2dcfacb278c78d7c8f09275167370fa25f8acdb5 100644
--- a/game/modules/tome/data/talents/corruptions/shadowflame.lua
+++ b/game/modules/tome/data/talents/corruptions/shadowflame.lua
@@ -133,6 +133,7 @@ newTalent{
 		if not tx or not ty or not target then return nil end
 		target = game.level.map(tx, ty, Map.ACTOR)
 		if not tx or not ty or not target then return nil end
+		if not target.player and not self.player then return nil end
 
 		game:playSoundNear(self, "talents/flame")
 		local dam = self:combatTalentSpellDamage(t, 12, 140)