# HG changeset patch # User Nenue # Date 1496614840 14400 # Node ID 5f1ba488c395b40b82fa8a1fe97746dd3b60d078 # Parent 0f47780a83c4c5ed51bec1ac5f28968199e05baf ArtifactPower: - prediction text shows the correct rank when AP cost is currently met diff -r 0f47780a83c4 -r 5f1ba488c395 Modules/ArtifactPower.lua --- a/Modules/ArtifactPower.lua Sat May 20 06:10:52 2017 -0400 +++ b/Modules/ArtifactPower.lua Sun Jun 04 18:20:40 2017 -0400 @@ -967,11 +967,11 @@ print('actual:', actualLevel, actualXP, '/', actualCost) - if unusedXP > 0 then - local remaining = totalXP + unusedXP - local nextCost = artifact.currentCost + local remaining = totalXP + unusedXP + local nextCost = artifact.currentCost + if remaining > nextCost then totalCost = nextCost - while remaining > nextCost do + while remaining >= nextCost do totalLevel = totalLevel + 1 remaining = remaining - nextCost nextCost = C_ArtifactUI.GetCostForPointAtRank(totalLevel, artifact.tier)