@@ -230,7 +230,7 @@ function calcs.doActorLifeManaSpiritReservation(actor)
230
230
local max = output [pool ]
231
231
local lowPerc = modDB :Sum (" BASE" , nil , " Low" .. pool .. " Percentage" )
232
232
local reserved = (actor [" reserved_" .. pool .. " Base" ] or 0 ) + m_ceil (max * (actor [" reserved_" .. pool .. " Percent" ] or 0 ) / 100 )
233
- uncancellableReservation = actor [" uncancellable_" .. pool .. " Reservation" ] or 0
233
+ local uncancellableReservation = actor [" uncancellable_" .. pool .. " Reservation" ] or 0
234
234
output [pool .. " Reserved" ] = m_min (reserved , max )
235
235
output [pool .. " Unreserved" ] = max - reserved
236
236
output [pool .. " UncancellableReservation" ] = m_min (uncancellableReservation , 0 )
@@ -562,21 +562,23 @@ function calcs.defence(env, actor)
562
562
for _ , slot in pairs ({" Helmet" ," Gloves" ," Boots" ," Body Armour" ," Weapon 2" ," Weapon 3" }) do
563
563
local armourData = actor .itemList [slot ] and actor .itemList [slot ].armourData
564
564
if armourData then
565
- wardBase = armourData .Ward or 0
565
+ local wardBase = armourData .Ward or 0
566
566
if wardBase > 0 then
567
567
if slot == " Body Armour" and modDB :Flag (nil , " DoubleBodyArmourDefence" ) then
568
568
wardBase = wardBase * 2
569
569
end
570
570
output [" WardOn" .. slot ] = wardBase
571
571
end
572
- energyShieldBase = armourData .EnergyShield or 0
572
+
573
+ local energyShieldBase = armourData .EnergyShield or 0
573
574
if energyShieldBase > 0 then
574
575
if slot == " Body Armour" and modDB :Flag (nil , " DoubleBodyArmourDefence" ) then
575
576
energyShieldBase = energyShieldBase * 2
576
577
end
577
578
output [" EnergyShieldOn" .. slot ] = energyShieldBase
578
579
end
579
- armourBase = armourData .Armour or 0
580
+
581
+ local armourBase = armourData .Armour or 0
580
582
if armourBase > 0 then
581
583
if slot == " Body Armour" then
582
584
if modDB :Flag (nil , " DoubleBodyArmourDefence" ) then
@@ -588,7 +590,8 @@ function calcs.defence(env, actor)
588
590
end
589
591
output [" ArmourOn" .. slot ] = armourBase
590
592
end
591
- evasionBase = armourData .Evasion or 0
593
+
594
+ local evasionBase = armourData .Evasion or 0
592
595
if evasionBase > 0 then
593
596
if slot == " Body Armour" then
594
597
if modDB :Flag (nil , " DoubleBodyArmourDefence" ) then
0 commit comments