From 4e7d7f1c259db2f0691c76ac5cd7e94e5038ebc3 Mon Sep 17 00:00:00 2001 From: Nostrademous Date: Sat, 27 Mar 2021 10:30:37 -0400 Subject: [PATCH] fix to calcs output/breakdown of Reflection and General's Cry --- Modules/CalcOffence.lua | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/Modules/CalcOffence.lua b/Modules/CalcOffence.lua index 7ecde3ad..afaae3d0 100644 --- a/Modules/CalcOffence.lua +++ b/Modules/CalcOffence.lua @@ -3711,20 +3711,20 @@ function calcs.offence(env, actor, activeSkill) -- Recalculate the offensive/defensive aspects of this new skill newEnv.player.mainSkill = newSkill calcs.perform(newEnv) - activeSkill = newSkill + env.player.mainSkill = newSkill -- Re-link over the output - actor.output = newEnv.player.output + env.player.output = newEnv.player.output -- Make any necessary corrections to output - actor.output.ManaCost = 0 + env.player.output.ManaCost = 0 -- Re-link over the breakdown (if present) if newEnv.player.breakdown then - actor.breakdown = newEnv.player.breakdown + env.player.breakdown = newEnv.player.breakdown -- Make any necessary corrections to breakdown - actor.breakdown.ManaCost = nil + env.player.breakdown.ManaCost = nil end usedSkill.TotalDPS = 0 @@ -3783,19 +3783,20 @@ function calcs.offence(env, actor, activeSkill) -- Recalculate the offensive/defensive aspects of this new skill newEnv.player.mainSkill = newSkill calcs.perform(newEnv) + env.player.mainSkill = newSkill -- Re-link over the output - actor.output = newEnv.player.output + env.player.output = newEnv.player.output -- Make any necessary corrections to output - actor.output.ManaCost = 0 + env.player.output.ManaCost = 0 -- Re-link over the breakdown (if present) if newEnv.player.breakdown then - actor.breakdown = newEnv.player.breakdown + env.player.breakdown = newEnv.player.breakdown -- Make any necessary corrections to breakdown - actor.breakdown.ManaCost = nil + env.player.breakdown.ManaCost = nil end else activeSkill.infoMessage2 = "No Saviour active skill found"