Release 2.12.3

* Fix crash when importing/opening builds (LocalIdentity)
This commit is contained in:
LocalIdentity
2021-10-28 21:47:42 +11:00
parent 64333763b7
commit 0bbae520f8
4 changed files with 16 additions and 4 deletions

View File

@@ -1,5 +1,13 @@
# Changelog
## [2.12.3](https://github.com/PathOfBuildingCommunity/PathOfBuilding/tree/v2.12.3) (2021/10/28)
[Full Changelog](https://github.com/PathOfBuildingCommunity/PathOfBuilding/compare/v2.12.2...v2.12.3)
**Fixed bugs:**
- Fix crash when importing/opening builds ([LocalIdentity](https://github.com/LocalIdentity))
## [2.12.2](https://github.com/PathOfBuildingCommunity/PathOfBuilding/tree/v2.12.2) (2021/10/28)
[Full Changelog](https://github.com/PathOfBuildingCommunity/PathOfBuilding/compare/v2.12.1...v2.12.2)

View File

@@ -1,3 +1,7 @@
VERSION[2.12.3][2021/10/28]
* Fix crash when importing/opening builds (LocalIdentity)
VERSION[2.12.2][2021/10/28]
* Fix crash when using Blood Magic Keystone (LocalIdentity)

View File

@@ -1,6 +1,6 @@
<?xml version='1.0' encoding='UTF-8'?>
<PoBVersion>
<Version number="2.12.2" />
<Version number="2.12.3" />
<Source part="default" url="https://raw.githubusercontent.com/PathOfBuildingCommunity/PathOfBuilding/{branch}/" />
<Source part="program" url="https://raw.githubusercontent.com/PathOfBuildingCommunity/PathOfBuilding/{branch}/src/" />
<Source part="tree" url="https://raw.githubusercontent.com/PathOfBuildingCommunity/PathOfBuilding/{branch}/src/" />
@@ -10,7 +10,7 @@
<File name="UpdateCheck.lua" part="program" sha1="c0a1a7e9823bcecef193bf3a846e93d5ea2d9021" />
<File name="UpdateApply.lua" part="program" sha1="4dd42f413cb89a963e4ae1b40e214985b909c05b" />
<File name="GameVersions.lua" part="program" sha1="4e17ca607637862c2d99fa9eb92715a8036d62b5" />
<File name="changelog.txt" part="default" sha1="bcab6c66b01a09040ed374e7d36b7fbac5cda0d6" />
<File name="changelog.txt" part="default" sha1="daaa024475ecaaa1b3a58c1683db2540e3bcdee0" />
<File name="Path{space}of{space}Building.exe" part="runtime" platform="win32" sha1="7486cf4f0289df72ccce93a69a4198ad069f79b9" />
<File name="lua51.dll" part="runtime" platform="win32" sha1="7a973d3c0b5121e6aad0dcb9323be5b432fc63e7" />
<File name="SimpleGraphic.dll" part="runtime" platform="win32" sha1="66cb4131f93c1e7b29564e0ee02560181a970e9c" />
@@ -60,7 +60,7 @@
<File name="Classes/MinionListControl.lua" part="program" sha1="2e9201fd97689f14e53b8be53b0942594362d210" />
<File name="Classes/ModDB.lua" part="program" sha1="222d51c1d270098d40b7980873c77d0406431df9" />
<File name="Classes/ModList.lua" part="program" sha1="0c675816bf9fc2a8e560fbff2b26ff1f579d03ca" />
<File name="Classes/ModStore.lua" part="program" sha1="cfeb965a811f186f2f042396244f804a6828dd7a" />
<File name="Classes/ModStore.lua" part="program" sha1="167b5f9b6f12e51125ffc5ab53b4f531e45575bc" />
<File name="Classes/NotesTab.lua" part="program" sha1="1913fc72203048097ac49b953299ac1a44b1d57e" />
<File name="Classes/NotableDBControl.lua" part="program" sha1="2edb96f5e80e54afe791fcd293cf9dc201183b13" />
<File name="Classes/PassiveMasteryControl.lua" part="program" sha1="f15e2d078e9b36d42616d11b652eb7160ffb0627" />

View File

@@ -222,7 +222,7 @@ function ModStoreClass:GetStat(stat, cfg)
if stat == "ManaUnreserved" and self.actor.output[stat] ~= self.actor.output[stat] then
-- 0% reserved = total mana
return self.actor.output["Mana"]
elseif self.actor.output["Mana"] > 0 and stat == "ManaUnreserved" and self.actor.output[stat] < 0 then
elseif stat == "ManaUnreserved" and not self.actor.output[stat] == nil and self.actor.output[stat] < 0 then
-- This reverse engineers how much mana is unreserved before efficiency for accurate Arcane Cloak calcs
local reservedPercentBeforeEfficiency = (math.abs(self.actor.output["ManaUnreservedPercent"]) + 100) * ((100 + self.actor["ManaEfficiency"]) / 100)
return self.actor.output["Mana"] * (math.ceil(reservedPercentBeforeEfficiency) / 100);