Skip to content

Commit

Permalink
Fixed Empty actor item detection (#8331)
Browse files Browse the repository at this point in the history
Changed independent IF statements in CalcPerform into single if-elseif statement.
  • Loading branch information
Jonathan-Dang authored Nov 18, 2024
1 parent f88e434 commit e20bb1b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Modules/CalcPerform.lua
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,7 @@ local function doActorAttribsConditions(env, actor)
-- Set conditions
if (actor.itemList["Weapon 2"] and actor.itemList["Weapon 2"].type == "Shield") or (actor == env.player and env.aegisModList) then
condList["UsingShield"] = true
end
if not actor.itemList["Weapon 2"] then
elseif not actor.itemList["Weapon 2"] then
condList["OffHandIsEmpty"] = true
end
if actor.weaponData1.type == "None" then
Expand Down

0 comments on commit e20bb1b

Please sign in to comment.