Commit 4146f63d91722283d6324272b72e9998b28ccdad

Authored by DarkGod
1 parent 27168ee3

Added a visual effect for Inner Demon debuff

... ... @@ -1626,6 +1626,11 @@ newEffect{
1626 1626 parameters = {chance=0},
1627 1627 on_gain = function(self, err) return "#F53CBE##Target# is plagued by inner demons!", "+Inner Demons" end,
1628 1628 on_lose = function(self, err) return "#Target# is freed from the demons.", "-Inner Demons" end,
  1629 + activate = function(self, eff)
  1630 + if core.shader.active() then
  1631 + self:effectParticles(eff, {type="shader_shield", args={size_factor=1.5, img="inner_demons_tentacle_shader"}, shader={type="tentacles", wobblingType=0, appearTime=0.8, time_factor=2000, noup=0.0}})
  1632 + end
  1633 + end,
1629 1634 on_timeout = function(self, eff)
1630 1635 if eff.src.dead or not game.level:hasEntity(eff.src) then eff.dur = 0 return true end
1631 1636 local t = eff.src:getTalentFromId(eff.src.T_INNER_DEMONS)
... ...