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

Overkill can trigger only once per turn

git-svn-id: http://svn.net-core.org/repos/t-engine4@5114 51575b47-30f0-44d4-a5cc-537603b46e54
parent 07c30e76
No related branches found
No related tags found
No related merge requests found
......@@ -1779,7 +1779,8 @@ end
function _M:takeHit(value, src, death_note)
local dead, val = engine.interface.ActorLife.takeHit(self, value, src, death_note)
if dead and src and src.attr and src:attr("overkill") and src.project then
if dead and src and src.attr and src:attr("overkill") and src.project and not src.turn_procs.overkill then
src.turn_procs.overkill = true
local dam = (self.die_at - self.life) * src:attr("overkill") / 100
src:project({type="ball", radius=2, selffire=false, x=self.x, y=self.y}, self.x, self.y, DamageType.BLIGHT, dam, {type="acid"})
end
......
......@@ -24,7 +24,6 @@ newTalent{
mode = "sustained",
points = 5,
cooldown = 20,
vim = 0,
tactical = { BUFF = 2 },
activate = function(self, t)
game:playSoundNear(self, "talents/flame")
......@@ -84,7 +83,7 @@ newTalent{
points = 5,
mode = "sustained",
cooldown = 20,
vim = 18,
sustain_vim = 18,
tactical = { BUFF = 2 },
activate = function(self, t)
game:playSoundNear(self, "talents/flame")
......
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