Skip to content
Snippets Groups Projects
Commit b173d861 authored by DarkGod's avatar DarkGod
Browse files

Made temporal fugue more resilient to reccursion (with regard to automated...

Made temporal fugue more resilient to reccursion (with regard to automated defence system of Embers of Rage)
parent 515c9e2b
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -2548,21 +2548,21 @@ newEffect{
end
-- Split the damage
if #clones > 0 and not self.turn_procs.temporal_fugue_damage then
self.turn_procs.temporal_fugue_damage = true
if #clones > 0 and not self.turn_procs.temporal_fugue_damage_self and not self.turn_procs.temporal_fugue_damage_target then
self.turn_procs.temporal_fugue_damage_self = true
cb.value = cb.value/#clones
game:delayedLogMessage(self, nil, "fugue_damage", "#STEEL_BLUE##Source# shares damage with %s fugue clones!", string.his_her(self))
for i = 1, #clones do
local target = clones[i]
if target ~= self then
target.turn_procs.temporal_fugue_damage = true
target.turn_procs.temporal_fugue_damage_target = true
target:takeHit(cb.value, src)
game:delayedLogDamage(src or self, self, 0, ("#STEEL_BLUE#(%d shared)#LAST#"):format(cb.value), nil)
target.turn_procs.temporal_fugue_damage = nil
target.turn_procs.temporal_fugue_damage_target = nil
end
end
self.turn_procs.temporal_fugue_damage = nil
self.turn_procs.temporal_fugue_damage_self = nil
end
-- If we're the last clone remove the effect
......
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