diff --git a/game/modules/tome/data/talents/misc/horrors.lua b/game/modules/tome/data/talents/misc/horrors.lua index 2528590e2a5dc2bcc55e7d6ac3078527fc1a50cd..692f12f42c7942dfbd7e30edcd0b3d5d9b1d787c 100644 --- a/game/modules/tome/data/talents/misc/horrors.lua +++ b/game/modules/tome/data/talents/misc/horrors.lua @@ -329,7 +329,7 @@ newTalent{ m:forceLevelup(self.level) game.zone:addEntity(game.level, m, "actor", x, y) game.level.map:particleEmitter(x, y, 1, "summon") - m:setEffect(m.EFF_TEMPORAL_DESTABILIZATION, 5, {src=self, dam=t.getDamage(self, t), explosion=self:spellCrit(t.getExplosion(self, t))}) + m:setEffect(m.EFF_TEMPORAL_DESTABILIZATION_START, 2, {src=self, dam=t.getDamage(self, t), explosion=self:spellCrit(t.getExplosion(self, t))}) end game:playSoundNear(self, "talents/spell_generic") diff --git a/game/modules/tome/data/timed_effects/magical.lua b/game/modules/tome/data/timed_effects/magical.lua index 0421264ba844df779bb2bb7cffdcff1198e32efe..65ead174d5fc77b2f67f40d89fcd9314d18a50ab 100644 --- a/game/modules/tome/data/timed_effects/magical.lua +++ b/game/modules/tome/data/timed_effects/magical.lua @@ -1254,6 +1254,25 @@ newEffect{ end, } +newEffect{ + name = "TEMPORAL_DESTABILIZATION_START", image = "talents/destabilize.png", + desc = "Temporal Destabilization", + long_desc = function(self, eff) return ("Target is destabilized and in %d turns will start suffering %0.2f temporal damage per turn. If it dies with this effect active after the damage starts it will explode."):format(eff.dur, eff.dam) end, + type = "magical", + subtype = { temporal=true }, + status = "detrimental", + parameters = { dam=1, explosion=10 }, + on_gain = function(self, err) return "#Target# is unstable.", "+Temporal Destabilization" end, + on_lose = function(self, err) return "#Target# has regained stability.", "-Temporal Destabilization" end, + activate = function(self, eff) + eff.particle = self:addParticles(Particles.new("destabilized", 1)) + end, + deactivate = function(self, eff) + self:removeParticles(eff.particle) + self:setEffect(self.EFF_TEMPORAL_DESTABILIZATION, 5, {src=eff.src, dam=eff.dam, explosion=eff.explosion}) + end, +} + newEffect{ name = "TEMPORAL_DESTABILIZATION", image = "talents/destabilize.png", desc = "Temporal Destabilization",