Skip to content

Commit

Permalink
- fix nil index issue
Browse files Browse the repository at this point in the history
  • Loading branch information
cont1nuity committed Dec 13, 2023
1 parent 7cd063b commit 73c8790
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Plater.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8997,7 +8997,7 @@ end
end,

SPELL_CAST_SUCCESS = function (time, token, hidding, sourceGUID, sourceName, sourceFlag, sourceFlag2, targetGUID, targetName, targetFlag, targetFlag2, spellID, spellName, spellType, amount, overKill, school, resisted, blocked, absorbed, isCritical)
if (not DB_CAPTURED_SPELLS[spellID] or DB_CAPTURED_SPELLS[spellID].isChanneled == nil) then -- check isChanneled to ensure update of already existing data
if ((tonumber(spellID) or 0) > 0 and (not DB_CAPTURED_SPELLS[spellID] or DB_CAPTURED_SPELLS[spellID].isChanneled == nil)) then -- check isChanneled to ensure update of already existing data
if (not sourceFlag or bit.band(sourceFlag, 0x00000400) == 0) then --not a player
local npcId = Plater:GetNpcIdFromGuid(sourceGUID or "")
local isChanneled = false
Expand Down

0 comments on commit 73c8790

Please sign in to comment.