Skip to content
Snippets Groups Projects
Commit 487e3f92 authored by dg's avatar dg
Browse files

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
parent 4152db66
No related branches found
No related tags found
No related merge requests found
......@@ -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())
......
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment