From c7f51d127e3701edf06d1ace537cba3da58e2a22 Mon Sep 17 00:00:00 2001 From: dg <dg@51575b47-30f0-44d4-a5cc-537603b46e54> Date: Tue, 4 Dec 2012 17:00:12 +0000 Subject: [PATCH] Dirty Fighting now only takes a turn if the stun lands (and is not shrugged off) otherwise it is free git-svn-id: http://svn.net-core.org/repos/t-engine4@5912 51575b47-30f0-44d4-a5cc-537603b46e54 --- game/modules/tome/data/talents/cunning/dirty.lua | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/game/modules/tome/data/talents/cunning/dirty.lua b/game/modules/tome/data/talents/cunning/dirty.lua index 9b3e2083dc..80c87d7c85 100644 --- a/game/modules/tome/data/talents/cunning/dirty.lua +++ b/game/modules/tome/data/talents/cunning/dirty.lua @@ -41,8 +41,10 @@ newTalent{ if hitted then if target:canBe("stun") then target:setEffect(target.EFF_STUNNED, t.getDuration(self, t), {apply_power=self:combatAttack()}) - else - game.logSeen(target, "%s resists the stun!", target.name:capitalize()) + end + if not target:hasEffect(target.EFF_STUNNED) then + game.logSeen(target, "%s resists the stun and %s quickly gets back on feet!", target.name:capitalize(), self.name:capitalize()) + self.energy.value = self.energy.value + game.energy_to_act * self:combatSpeed() end end @@ -52,7 +54,8 @@ newTalent{ local damage = t.getDamage(self, t) local duration = t.getDuration(self, t) return ([[You hit your target doing %d%% damage, trying to stun it instead of damaging it. If your attack hits, the target is stunned for %d turns. - Stun chance increase with talent level and your Dexterity stat.]]): + Stun chance increase your accuracy. + If you fail to stun the target (of if it shrugs the effect) you quickly get back on your feet, not using your current turn.]]): format(100 * damage, duration) end, } -- GitLab