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

Disruption Shield now partially absorbs the hit that makes it explode

parent 6119d33b
No related branches found
No related tags found
No related merge requests found
......@@ -1775,6 +1775,10 @@ function _M:onTakeHit(value, src, death_note)
return 0
-- Or the shield collapses in a deadly arcane explosion
else
self:incMana(mana)
self.disruption_shield_absorb = self.disruption_shield_absorb + mana / self:attr("disruption_shield")
value = value - mana / self:attr("disruption_shield")
local dam = self.disruption_shield_absorb
-- Deactivate without loosing energy
......
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