Parser: fix lua error when no total absorb

This commit is contained in:
andrew6180
2024-08-26 08:37:40 -07:00
parent acfbdf9128
commit cbc9022cd5
+1 -1
View File
@@ -2620,7 +2620,7 @@
RunNextFrame(function()
if (shield_cache [targetName] and shield_cache [targetName][spellId] and shield_cache [targetName][spellId][sourceName]) then
amount = shield_cache[targetName][spellId][sourceName]
shield_cache[targetName].totalAbsorb = UnitGetTotalAbsorbs(targetName)
shield_cache[targetName].totalAbsorb = (UnitGetTotalAbsorbs(targetName) or 0)
local overheal = 0
shield_cache [targetName][spellId][sourceName] = 0