Skip to content

Commit ca8f831

Browse files
committed
Fix luacheck warnings
1 parent 12beff8 commit ca8f831

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

code/GM_Core.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2424
]]--
2525

26-
-- luacheck: globals GetAddOnMetadata ChannelInfo C_Timer
26+
-- luacheck: globals GetAddOnMetadata ChannelInfo C_Timer C_Engraving
2727

2828
rggm = rggm or {}
2929
local me = rggm

code/GM_ItemManager.lua

+7-3
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
]]--
2525

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

3030
--[[
@@ -153,9 +153,13 @@ function me.EquipItemByItemAndEnchantId(item)
153153
]]--
154154
if UnitAffectingCombat(RGGM_CONSTANTS.UNIT_ID_PLAYER) or mod.common.IsPlayerReallyDead()
155155
or mod.combatQueue.IsEquipChangeBlocked() or mod.common.IsPlayerCasting() then
156-
mod.combatQueue.AddToQueue(tonumber(item.itemId), tonumber(item.enchantId), tonumber(item.runeAbilityId), tonumber(item.slotId))
156+
mod.combatQueue.AddToQueue(
157+
tonumber(item.itemId), tonumber(item.enchantId), tonumber(item.runeAbilityId), tonumber(item.slotId)
158+
)
157159
else
158-
me.SwitchItems(tonumber(item.itemId), tonumber(item.enchantId), tonumber(item.runeAbilityId), tonumber(item.slotId))
160+
me.SwitchItems(
161+
tonumber(item.itemId), tonumber(item.enchantId), tonumber(item.runeAbilityId), tonumber(item.slotId)
162+
)
159163
end
160164
end
161165

0 commit comments

Comments
 (0)