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

updated some warden talents to respect paradox durations

parent f9991026
No related branches found
No related tags found
1 merge request!244More fixes
......@@ -177,6 +177,7 @@ newTalent{
on_pre_use = function(self, t, silent) if self:attr("disarmed") then if not silent then game.logPlayer(self, "You require a weapon to use this talent.") end return false end return true end,
getPower = function(self, t) return self:combatTalentLimit(t, 40, 10, 30) end, -- Limit < 40%
getDamage = function(self, t) return 1.2 end,
getDuration = function(self, t) return getExtensionModifier(self, t, 10) end,
action = function(self, t)
-- Grab our target so we can set our effect
local tg = self:getTalentTarget(t)
......@@ -194,16 +195,17 @@ newTalent{
self:attackTarget(target, nil, t.getDamage(self, t), true)
end
self:setEffect(self.EFF_WARDEN_S_FOCUS, 10, {target=target, power=t.getPower(self, t)})
target:setEffect(target.EFF_WARDEN_S_TARGET, 10, {src=self})
self:setEffect(self.EFF_WARDEN_S_FOCUS, t.getDuration(self, t), {target=target, power=t.getPower(self, t)})
target:setEffect(target.EFF_WARDEN_S_TARGET, t.getDuration(self, t), {src=self})
return true
end,
info = function(self, t)
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.
local duration = t.getDuration(self, t)
return ([[Attack the target with either your ranged or melee weapons for %d%% weapon damage. For the next %d 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 all enemies whose rank is lower then that of your focus target.]])
:format(damage, power, power, power)
:format(damage, duration, power, power, power)
end
}
\ No newline at end of file
......@@ -269,7 +269,7 @@ newTalent{
end
end,
radius = function(self, t) return self:getTalentLevel(t) >= 4 and 2 or 1 end,
getDuration = function(self, t) return 2 end,
getDuration = function(self, t) return getExtensionModifier(self, t, 2) end,
getDamage = function(self, t) return 7 + getParadoxSpellpower(self, t, 0.092) * self:combatTalentScale(t, 1, 7) end,
getChance = function(self, t) return self:combatTalentLimit(t, 40, 10, 30) end,
getSlow = function(self, t) return 30 end,
......
......@@ -383,6 +383,7 @@ newTalent{
end,
getDamage = function(self, t) return self:combatTalentSpellDamage(t, 20, 200, getParadoxSpellpower(self, t)) end,
getDamageStat = function(self, t) return 2 + math.ceil(t.getDamage(self, t) / 15) end,
getDuration = function(self, t) return getExtensionModifier(self, t, 3) end,
target = function(self, t)
return {type="cone", range=0, radius=self:getTalentRadius(t), selffire=false, talent=t}
end,
......@@ -421,7 +422,7 @@ newTalent{
DamageType:get(DamageType.TEMPORAL).projector(a, px, py, DamageType.TEMPORAL, dam)
-- Don't turn back the clock other hounds
if target.name ~= "temporal hound" then
target:setEffect(target.EFF_REGRESSION, 3, {power=t.getDamageStat(self, t), apply_power=a:combatSpellpower(), min_dur=1, no_ct_effect=true})
target:setEffect(target.EFF_REGRESSION, t.getDuration(self, t), {power=t.getDamageStat(self, t), apply_power=a:combatSpellpower(), min_dur=1, no_ct_effect=true})
end
end
end)
......@@ -437,9 +438,10 @@ newTalent{
local damage = t.getDamage(self, t)
local radius = self:getTalentRadius(t)
local stat_damage = t.getDamageStat(self, t)
local duration =t.getDuration(self, t)
local affinity = t.getResists(self, t)
return ([[Command your Temporal Hounds to breathe time, dealing %0.2f temporal damage and reducing the three highest stats of all targets in a radius %d cone.
Affected targets will have their stats reduced by %d for 3 turns. You are immune to the breath of your own hounds and your hounds are immune to stat damage from other hounds.
When you learn this talent, your hounds gain %d%% temporal damage affinity.]]):format(damDesc(self, DamageType.TEMPORAL, damage), radius, stat_damage, affinity)
Affected targets will have their stats reduced by %d for %d turns. You are immune to the breath of your own hounds and your hounds are immune to stat damage from other hounds.
When you learn this talent, your hounds gain %d%% temporal damage affinity.]]):format(damDesc(self, DamageType.TEMPORAL, damage), radius, stat_damage, duration, affinity)
end,
}
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