From 78b16854fa729eebf464ad8fe1a45605ff692b0f Mon Sep 17 00:00:00 2001
From: DarkGod <darkgod@net-core.org>
Date: Thu, 5 Nov 2020 16:55:15 +0100
Subject: [PATCH] weird

---
 game/modules/tome/data/talents/corruptions/shadowflame.lua | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/game/modules/tome/data/talents/corruptions/shadowflame.lua b/game/modules/tome/data/talents/corruptions/shadowflame.lua
index 812f76116f..47b00e9182 100644
--- a/game/modules/tome/data/talents/corruptions/shadowflame.lua
+++ b/game/modules/tome/data/talents/corruptions/shadowflame.lua
@@ -348,6 +348,11 @@ newTalent{
 			game.uiset:setupMinimap(game.level)
 			game.nicer_tiles:postProcessLevelTilesOnLoad(game.level)
 
+			if game.level.map:checkEntity(game.player.x, game.player.y, Map.TERRAIN, "block_move") then
+				-- Emergency teleport in case we somehow end up in a wall
+				game.player:teleportRandom(math.floor(game.level.map.w / 2), math.floor(game.level.map.h / 2), 100)
+			end
+
 			game.logPlayer(game.player, "#LIGHT_RED#You are brought back from the Fearscape!")
 		end)
 
-- 
GitLab