Skip to content

Commit

Permalink
Fix luacheck warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
RagedUnicorn committed Jul 9, 2024
1 parent f4b1d93 commit b6f1527
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion code/GM_Core.lua
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
]]--

-- luacheck: globals GetAddOnMetadata ChannelInfo C_Timer
-- luacheck: globals GetAddOnMetadata ChannelInfo C_Timer C_Engraving

rggm = rggm or {}
local me = rggm
Expand Down
10 changes: 7 additions & 3 deletions code/GM_ItemManager.lua
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
]]--

-- luacheck: globals GetItemInfo INVSLOT_MAINHAND INVSLOT_OFFHAND PutItemInBackpack GetInventoryItemID
-- luacheck: globals UnitAffectingCombat CursorHasItem SpellIsTargeting ClearCursor GetItemSpell
-- luacheck: globals UnitAffectingCombat CursorHasItem SpellIsTargeting ClearCursor GetItemSpell C_Engraving
-- luacheck: globals IsInventoryItemLocked PutItemInBag PickupInventoryItem C_Container GetInventoryItemLink

--[[
Expand Down Expand Up @@ -153,9 +153,13 @@ function me.EquipItemByItemAndEnchantId(item)
]]--
if UnitAffectingCombat(RGGM_CONSTANTS.UNIT_ID_PLAYER) or mod.common.IsPlayerReallyDead()
or mod.combatQueue.IsEquipChangeBlocked() or mod.common.IsPlayerCasting() then
mod.combatQueue.AddToQueue(tonumber(item.itemId), tonumber(item.enchantId), tonumber(item.runeAbilityId), tonumber(item.slotId))
mod.combatQueue.AddToQueue(
tonumber(item.itemId), tonumber(item.enchantId), tonumber(item.runeAbilityId), tonumber(item.slotId)
)
else
me.SwitchItems(tonumber(item.itemId), tonumber(item.enchantId), tonumber(item.runeAbilityId), tonumber(item.slotId))
me.SwitchItems(
tonumber(item.itemId), tonumber(item.enchantId), tonumber(item.runeAbilityId), tonumber(item.slotId)
)
end
end

Expand Down

0 comments on commit b6f1527

Please sign in to comment.