From e109d77171777ae8f07d62330c77f56071c01b55 Mon Sep 17 00:00:00 2001 From: DarkGod <darkgod@net-core.org> Date: Sun, 2 Feb 2014 17:27:34 +0100 Subject: [PATCH] Switch Place correctly consumes turn/cooldown/stamina even if used against a creature in a wall --- game/modules/tome/data/talents/cunning/dirty.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/game/modules/tome/data/talents/cunning/dirty.lua b/game/modules/tome/data/talents/cunning/dirty.lua index 389258372b..8d2e6b0e87 100644 --- a/game/modules/tome/data/talents/cunning/dirty.lua +++ b/game/modules/tome/data/talents/cunning/dirty.lua @@ -102,7 +102,7 @@ newTalent{ if hitted and not self.dead and tx == target.x and ty == target.y then if not self:canMove(tx,ty,true) or not target:canMove(sx,sy,true) then self:logCombat(target, "Terrain prevents #Source# from switching places with #Target#.") - return false + return true end self:setEffect(self.EFF_EVASION, t.getDuration(self, t), {chance=50}) -- Displace -- GitLab