@@ -230,7 +230,7 @@ function calcs.doActorLifeManaSpiritReservation(actor)
230230 local max = output [pool ]
231231 local lowPerc = modDB :Sum (" BASE" , nil , " Low" .. pool .. " Percentage" )
232232 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
234234 output [pool .. " Reserved" ] = m_min (reserved , max )
235235 output [pool .. " Unreserved" ] = max - reserved
236236 output [pool .. " UncancellableReservation" ] = m_min (uncancellableReservation , 0 )
@@ -562,21 +562,23 @@ function calcs.defence(env, actor)
562562 for _ , slot in pairs ({" Helmet" ," Gloves" ," Boots" ," Body Armour" ," Weapon 2" ," Weapon 3" }) do
563563 local armourData = actor .itemList [slot ] and actor .itemList [slot ].armourData
564564 if armourData then
565- wardBase = armourData .Ward or 0
565+ local wardBase = armourData .Ward or 0
566566 if wardBase > 0 then
567567 if slot == " Body Armour" and modDB :Flag (nil , " DoubleBodyArmourDefence" ) then
568568 wardBase = wardBase * 2
569569 end
570570 output [" WardOn" .. slot ] = wardBase
571571 end
572- energyShieldBase = armourData .EnergyShield or 0
572+
573+ local energyShieldBase = armourData .EnergyShield or 0
573574 if energyShieldBase > 0 then
574575 if slot == " Body Armour" and modDB :Flag (nil , " DoubleBodyArmourDefence" ) then
575576 energyShieldBase = energyShieldBase * 2
576577 end
577578 output [" EnergyShieldOn" .. slot ] = energyShieldBase
578579 end
579- armourBase = armourData .Armour or 0
580+
581+ local armourBase = armourData .Armour or 0
580582 if armourBase > 0 then
581583 if slot == " Body Armour" then
582584 if modDB :Flag (nil , " DoubleBodyArmourDefence" ) then
@@ -588,7 +590,8 @@ function calcs.defence(env, actor)
588590 end
589591 output [" ArmourOn" .. slot ] = armourBase
590592 end
591- evasionBase = armourData .Evasion or 0
593+
594+ local evasionBase = armourData .Evasion or 0
592595 if evasionBase > 0 then
593596 if slot == " Body Armour" then
594597 if modDB :Flag (nil , " DoubleBodyArmourDefence" ) then
0 commit comments