Commit a65ba93112cb47ed168cb50f435c5cc13ab0c0b1

Authored by DarkGod
2 parents 9794b6c0 ca360f7d

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
... ... @@ -945,7 +945,7 @@ newTalent{
945 945 end,
946 946 callbackOnTakeDamage = function(self, t, src, x, y, type, dam, state)
947 947 if self:isTalentCoolingDown(t) then return end
948   - if (self.life / self.max_life) >= 0.3 then return end
  948 + if ((self.life-dam) / self.max_life) > 0.3 then return end
949 949
950 950 game.logSeen(self, "#RED#%s reacts immediately after taking severe wounds!#LAST#", self:getName():capitalize())
951 951 self.energy.value = self.energy.value + game.energy_to_act * 1.5
... ... @@ -954,7 +954,7 @@ newTalent{
954 954 info = function(self, t)
955 955 return ([[Yeeks live fast, think fast, and sacrifice fast for the Way.
956 956 Your global speed is increased by %0.1f%%.
957   - 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))
  957 + 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))
958 958 end,
959 959 }
960 960
... ...