Fix error when there's no battlefieldminimap
But still play alert
This commit is contained in:
		@@ -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)
									
									
									
									
								
							
							
						
						
									
										
											BIN
										
									
								
								Heimdall.zip
									 (Stored with Git LFS)
									
									
									
									
								
							
										
											Binary file not shown.
										
									
								
							@@ -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()
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user