From 2f6031613dee2a8161a6a43dd895c6e1a97ae805 Mon Sep 17 00:00:00 2001 From: Dusk-92 Date: Sun, 30 Aug 2026 11:20:35 +0200 Subject: [PATCH] Preserve optional ClassicAPI call shapes --- api.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/api.lua b/api.lua index 119b0da..d4f6938 100644 --- a/api.lua +++ b/api.lua @@ -171,7 +171,8 @@ end API.StartAttack = function(unit) if API.attackverbs then - return _G.StartAttack(unit) + if unit then return _G.StartAttack(unit) end + return _G.StartAttack() end end @@ -183,7 +184,8 @@ end API.FocusUnit = function(unit) if API.focus then - return _G.FocusUnit(unit) + if unit then return _G.FocusUnit(unit) end + return _G.FocusUnit() end end