From 487e3f929499a44595154aaa2875e331813ff255 Mon Sep 17 00:00:00 2001 From: dg <dg@51575b47-30f0-44d4-a5cc-537603b46e54> Date: Wed, 21 Dec 2011 14:17:56 +0000 Subject: [PATCH] Sunder Arms/Armour does not check for stun resistance anymore Grab/Crush/Constrict check for pin resistance instead of stun resistance git-svn-id: http://svn.net-core.org/repos/t-engine4@4750 51575b47-30f0-44d4-a5cc-537603b46e54 --- game/modules/tome/data/talents/misc/npcs.lua | 6 +++--- .../tome/data/talents/techniques/2hweapon.lua | 12 ++---------- 2 files changed, 5 insertions(+), 13 deletions(-) diff --git a/game/modules/tome/data/talents/misc/npcs.lua b/game/modules/tome/data/talents/misc/npcs.lua index 94700f4144..1f452e9ccc 100644 --- a/game/modules/tome/data/talents/misc/npcs.lua +++ b/game/modules/tome/data/talents/misc/npcs.lua @@ -256,7 +256,7 @@ newTalent{ -- Try to stun ! if hit then - if target:canBe("stun") then + if target:canBe("pin") then target:setEffect(target.EFF_CONSTRICTED, (2 + self:getTalentLevel(t)) * 10, {src=self, power=1.5 * self:getTalentLevel(t), apply_power=self:combatPhysicalpower()}) else game.logSeen(target, "%s resists the constriction!", target.name:capitalize()) @@ -663,7 +663,7 @@ newTalent{ -- Try to stun ! if hit then - if target:canBe("stun") then + if target:canBe("pin") then target:setEffect(target.EFF_PINNED, 1 + self:getTalentLevel(t), {apply_power=self:combatPhysicalpower()}) else game.logSeen(target, "%s resists the grab!", target.name:capitalize()) @@ -1026,7 +1026,7 @@ newTalent{ -- Try to stun ! if hit then - if target:canBe("stun") then + if target:canBe("ping") then target:setEffect(target.EFF_PINNED, 2 + self:getTalentLevel(t), {apply_power=self:combatPhysicalpower()}) else game.logSeen(target, "%s resists the crushing!", target.name:capitalize()) diff --git a/game/modules/tome/data/talents/techniques/2hweapon.lua b/game/modules/tome/data/talents/techniques/2hweapon.lua index 89dda84ff5..9db9f792b6 100644 --- a/game/modules/tome/data/talents/techniques/2hweapon.lua +++ b/game/modules/tome/data/talents/techniques/2hweapon.lua @@ -274,11 +274,7 @@ newTalent{ -- Try to stun ! if hit then - if target:canBe("stun") then - target:setEffect(target.EFF_SUNDER_ARMOUR, 4 + self:getTalentLevel(t), {power=5*self:getTalentLevel(t), apply_power=self:combatPhysicalpower()}) - else - game.logSeen(target, "%s resists the sundering!", target.name:capitalize()) - end + target:setEffect(target.EFF_SUNDER_ARMOUR, 4 + self:getTalentLevel(t), {power=5*self:getTalentLevel(t), apply_power=self:combatPhysicalpower()}) end return true @@ -320,11 +316,7 @@ newTalent{ -- Try to stun ! if hit then - if target:canBe("stun") then - target:setEffect(target.EFF_SUNDER_ARMS, 4 + self:getTalentLevel(t), {power=3*self:getTalentLevel(t), apply_power=self:combatPhysicalpower()}) - else - game.logSeen(target, "%s resists the sundering!", target.name:capitalize()) - end + target:setEffect(target.EFF_SUNDER_ARMS, 4 + self:getTalentLevel(t), {power=3*self:getTalentLevel(t), apply_power=self:combatPhysicalpower()}) end return true -- GitLab