Skip to content
Snippets Groups Projects
Commit eb25170c authored by dg's avatar dg
Browse files

Fix absorption shields to not ignore the last blow

git-svn-id: http://svn.net-core.org/repos/t-engine4@2177 51575b47-30f0-44d4-a5cc-537603b46e54
parent 7f0e5811
No related branches found
No related tags found
No related merge requests found
......@@ -664,8 +664,8 @@ function _M:onTakeHit(value, src)
self.retribution_absorb = self.retribution_absorb - (value / 2)
value = value / 2
else
self.retribution_absorb = 0
value = value - self.retribution_absorb
self.retribution_absorb = 0
local dam = self.retribution_strike
-- Deactivate without loosing energy
......@@ -707,8 +707,8 @@ function _M:onTakeHit(value, src)
self.time_shield_absorb = self.time_shield_absorb - value
value = 0
else
self.time_shield_absorb = 0
value = value - self.time_shield_absorb
self.time_shield_absorb = 0
end
-- If we are at the end of the capacity, release the time shield damage
......@@ -724,8 +724,8 @@ function _M:onTakeHit(value, src)
self.damage_shield_absorb = self.damage_shield_absorb - value
value = 0
else
self.damage_shield_absorb = 0
value = value - self.damage_shield_absorb
self.damage_shield_absorb = 0
end
-- If we are at the end of the capacity, release the time shield damage
......
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