Skip to content
Snippets Groups Projects
Commit c5227b0d authored by Eric Wykoff's avatar Eric Wykoff
Browse files

warden's focus a bit cooler

parent c6e4dc10
No related branches found
No related tags found
1 merge request!200More fixes
......@@ -199,7 +199,7 @@ newTalent{
local damage = t.getDamage(self, t) * 100
local power = t.getPower(self, t)
return ([[Attack the target with either your ranged or melee weapons for %d%% weapon damage. For the next ten turns random targeting, such as from Blink Blade and Warden's Call, will focus on this target.
Attacks against this target gain %d%% critical chance and critical strike power while you take %d%% less damage from vermin and normal rank enemies, if they're not also your focus target.]])
Attacks against this target gain %d%% critical chance and critical strike power while you take %d%% less damage from all enemies whose rank is lower then that of your focus target.]])
:format(damage, power, power, power)
end
}
\ No newline at end of file
......@@ -3479,7 +3479,7 @@ newEffect{
parameters = { power=0},
callbackOnTakeDamage = function(self, eff, src, x, y, type, dam, tmp)
local eff = self:hasEffect(self.EFF_WARDEN_S_FOCUS)
if eff and dam > 0 and eff.target ~= src and src ~= self and (src.rank and src.rank < 3) then
if eff and dam > 0 and eff.target ~= src and src ~= self and (src.rank and eff.target.rank and src.rank < eff.target.rank) then
-- Reduce damage
local reduction = dam * eff.power/100
dam = dam - reduction
......
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