Commit a65ba93112cb47ed168cb50f435c5cc13ab0c0b1
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
Showing
1 changed file
with
2 additions
and
2 deletions
@@ -945,7 +945,7 @@ newTalent{ | @@ -945,7 +945,7 @@ newTalent{ | ||
945 | end, | 945 | end, |
946 | callbackOnTakeDamage = function(self, t, src, x, y, type, dam, state) | 946 | callbackOnTakeDamage = function(self, t, src, x, y, type, dam, state) |
947 | if self:isTalentCoolingDown(t) then return end | 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 | game.logSeen(self, "#RED#%s reacts immediately after taking severe wounds!#LAST#", self:getName():capitalize()) | 950 | game.logSeen(self, "#RED#%s reacts immediately after taking severe wounds!#LAST#", self:getName():capitalize()) |
951 | self.energy.value = self.energy.value + game.energy_to_act * 1.5 | 951 | self.energy.value = self.energy.value + game.energy_to_act * 1.5 |
@@ -954,7 +954,7 @@ newTalent{ | @@ -954,7 +954,7 @@ newTalent{ | ||
954 | info = function(self, t) | 954 | info = function(self, t) |
955 | return ([[Yeeks live fast, think fast, and sacrifice fast for the Way. | 955 | return ([[Yeeks live fast, think fast, and sacrifice fast for the Way. |
956 | Your global speed is increased by %0.1f%%. | 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 | end, | 958 | end, |
959 | } | 959 | } |
960 | 960 |
-
Please register or login to post a comment