Fix error when there's no battlefieldminimap

But still play alert
This commit is contained in:
2025-01-11 13:14:08 +01:00
parent dbfbc2c347
commit d104bcc1fa
3 changed files with 9 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
## Interface: 70300
## Title: Heimdall
## Version: 3.2.1
## Version: 3.2.2
## Notes: Watches over areas and alerts when hostiles spotted
## Author: Cyka
## SavedVariables: Heimdall_Data

BIN
Heimdall.zip (Stored with Git LFS)

Binary file not shown.

View File

@@ -16,6 +16,12 @@ function shared.MinimapTagger.Init()
---@param scale number?
---@param ttl number?
local function PlantFrame(x, y, frame, scale, ttl)
if not BattlefieldMinimap then
if Heimdall_Data.config.minimapTagger.debug then
print(string.format("[%s] BattlefieldMinimap not found", ModuleName))
end
return
end
scale = scale or 1
ttl = ttl or 1
local w, h = BattlefieldMinimap:GetSize()