How to superload a timed effect like CUT
Posted: Mon Oct 28, 2013 12:55 pm
Hi,
i want to superload the function of the CUT effect, adding lines similar to the waters of life effect:
is there any clean and nice way of doing this?
Cheers
i want to superload the
Code: Select all
on_timeout
Code: Select all
on_timeout = function(self, eff)
if self:attr("purify_poison") then self:heal(eff.power)
else DamageType:get(DamageType.NATURE).projector(eff.src, self.x, self.y, DamageType.NATURE, eff.power)
end
end,
Cheers