Skip to content
Snippets Groups Projects
Commit a65ba931 authored by DarkGod's avatar DarkGod
Browse files

Merge branch 'quickened-fix' into 'master'

Update Yeek's Quickened to trigger if the damage would leave you at 30% life or …

…less. This seemed to be the original intent, but it was not taking the damage into account as written, so would only trigger when taking damage *after* your life was 30% or less.

See merge request !707
parents 9794b6c0 ca360f7d
No related branches found
No related tags found
No related merge requests found
......@@ -945,7 +945,7 @@ newTalent{
end,
callbackOnTakeDamage = function(self, t, src, x, y, type, dam, state)
if self:isTalentCoolingDown(t) then return end
if (self.life / self.max_life) >= 0.3 then return end
if ((self.life-dam) / self.max_life) > 0.3 then return end
game.logSeen(self, "#RED#%s reacts immediately after taking severe wounds!#LAST#", self:getName():capitalize())
self.energy.value = self.energy.value + game.energy_to_act * 1.5
......@@ -954,7 +954,7 @@ newTalent{
info = function(self, t)
return ([[Yeeks live fast, think fast, and sacrifice fast for the Way.
Your global speed is increased by %0.1f%%.
If your life drops below 30%% you gain 1.5 turns. This effect can only happen once every %d turns.]]):tformat(100*t.speedup(self, t), self:getTalentCooldown(t))
If your life is below 30%% after taking damage you gain 1.5 turns. This effect can only happen once every %d turns.]]):tformat(100*t.speedup(self, t), self:getTalentCooldown(t))
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