Skip to content

Commit 26c7124

Browse files
author
Skyler H
committed
Return 0 if player doesn't have an equipped artifact
1 parent 27318ac commit 26c7124

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

SimpleCalc.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,9 @@ function SimpleCalc_ParseParameters(paramStr)
159159
end
160160

161161
function getAPInfo(ap)
162+
if(GetEquippedArtifactInfo() == nil) then
163+
return 0;
164+
end
162165
local itemID, altItemID, name, icon, totalXP, pointsSpent = GetEquippedArtifactInfo()
163166
local pointsAvailable = 0
164167
local nextRankCost = GetCostForPointAtRank(pointsSpent + pointsAvailable) or 0

0 commit comments

Comments
 (0)