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

fix

git-svn-id: http://svn.net-core.org/repos/t-engine4@3913 51575b47-30f0-44d4-a5cc-537603b46e54
parent 1aebcc40
No related branches found
No related tags found
No related merge requests found
......@@ -3458,12 +3458,14 @@ newEffect{
eff.tmpid = self:addTemporaryValue("damage_shunt", eff.power)
--- Warning there can be only one time shield active at once for an actor
self.damage_shunt_absorb = eff.power
self.damage_shunt_absorb_max = eff.power
eff.particle = self:addParticles(Particles.new("damage_shield", 1))
end,
deactivate = function(self, eff)
self:removeParticles(eff.particle)
self:removeTemporaryValue("damage_shunt", eff.tmpid)
self.damage_shunt_absorb = nil
self.damage_shunt_absorb_max = nil
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