From 7b1370a008e62b5b959c1e7288640fd553202b6e Mon Sep 17 00:00:00 2001
From: dg <dg@51575b47-30f0-44d4-a5cc-537603b46e54>
Date: Mon, 7 Jan 2013 00:29:22 +0000
Subject: [PATCH] Stoning Poison does not turn to stone is removed early

git-svn-id: http://svn.net-core.org/repos/t-engine4@6329 51575b47-30f0-44d4-a5cc-537603b46e54
---
 game/modules/tome/data/talents/cunning/poisons.lua | 2 +-
 game/modules/tome/data/timed_effects/physical.lua  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/game/modules/tome/data/talents/cunning/poisons.lua b/game/modules/tome/data/talents/cunning/poisons.lua
index b57e68492c..e1ebdd87e1 100644
--- a/game/modules/tome/data/talents/cunning/poisons.lua
+++ b/game/modules/tome/data/talents/cunning/poisons.lua
@@ -384,7 +384,7 @@ newTalent{
 	end,
 	info = function(self, t)
 		return ([[Coat your weapons with a stoning poison, inflicting %d nature damage per turn for %d turns.
-		When the poison ends, the victim turns to stone for %d turns.
+		When the poison runs its full duration, the victim will turn to stone for %d turns.
 		The damage scales with your Cunning.]]):
 		format(damDesc(self, DamageType.NATURE, t.getDOT(self, t)), t.getDuration(self, t), t.getEffect(self, t))
 	end,
diff --git a/game/modules/tome/data/timed_effects/physical.lua b/game/modules/tome/data/timed_effects/physical.lua
index 09a5124f21..d114c4813d 100644
--- a/game/modules/tome/data/timed_effects/physical.lua
+++ b/game/modules/tome/data/timed_effects/physical.lua
@@ -242,7 +242,7 @@ newEffect{
 	activate = function(self, eff)
 	end,
 	deactivate = function(self, eff)
-		if self:canBe("stun") and self:canBe("stone") and self:canBe("instakill") then
+		if eff.dur <= 0 and self:canBe("stun") and self:canBe("stone") and self:canBe("instakill") then
 			self:setEffect(self.EFF_STONED, eff.stone, {})
 		end
 	end,
-- 
GitLab