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

Void shards now only start the explode countdown/trigger after 2 turns

git-svn-id: http://svn.net-core.org/repos/t-engine4@5941 51575b47-30f0-44d4-a5cc-537603b46e54
parent b2d7ba8f
No related branches found
No related tags found
No related merge requests found
......@@ -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")
......
......@@ -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",
......
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