fix to calcs output/breakdown of Reflection and General's Cry

This commit is contained in:
Nostrademous
2021-03-27 10:30:37 -04:00
parent eb6d99368b
commit 4e7d7f1c25

View File

@@ -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"