Skip to content

Commit ad8a757

Browse files
committed
nil check
1 parent a2cd4a3 commit ad8a757

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Modules/CalcPerform.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,10 +180,10 @@ local function doActorAttribsConditions(env, actor)
180180
condList["Using"..slotName] = true
181181
end
182182
end
183-
if actor.itemList["Graft 1"] then
183+
if actor.itemList["Graft 1"] and actor.itemList["Graft 1"].baseName then
184184
condList["Using"..actor.itemList["Graft 1"].baseName:match("%s(%S+)")] = true
185185
end
186-
if actor.itemList["Graft 2"] then
186+
if actor.itemList["Graft 2"] and actor.itemList["Graft 2"].baseName then
187187
condList["Using"..actor.itemList["Graft 2"].baseName:match("%s(%S+)")] = true
188188
end
189189
if actor.weaponData2.type then

0 commit comments

Comments
 (0)