From 3829cfe9d399c243aa306aad13d17bb3522af095 Mon Sep 17 00:00:00 2001
From: DarkGod <darkgod@net-core.org>
Date: Mon, 3 Aug 2020 17:09:39 +0200
Subject: [PATCH] Shadowstep is greyed out when pinned

---
 game/modules/tome/data/talents/cunning/shadow-magic.lua | 1 +
 1 file changed, 1 insertion(+)

diff --git a/game/modules/tome/data/talents/cunning/shadow-magic.lua b/game/modules/tome/data/talents/cunning/shadow-magic.lua
index 627b860693..d9f72ae2f6 100644
--- a/game/modules/tome/data/talents/cunning/shadow-magic.lua
+++ b/game/modules/tome/data/talents/cunning/shadow-magic.lua
@@ -123,6 +123,7 @@ newTalent{
 	target = function(self, t) return {type="hit", range=self:getTalentRange(t), talent=t} end,
 	getDuration = function(self, t) return math.min(5, 2 + math.ceil(self:getTalentLevel(t) / 2)) end,
 	getDamage = function(self, t) return self:combatTalentWeaponDamage(t, 0.8, 2) end,
+	on_pre_use = function(self, t) return not self:attr("never_move") end,
 	action = function(self, t)
 		if self:attr("never_move") then game.logPlayer(self, "You cannot do that currently.") return end
 		
-- 
GitLab