Fix error when there's no battlefieldminimap
But still play alert
This commit is contained in:
		@@ -1,6 +1,6 @@
 | 
				
			|||||||
## Interface: 70300
 | 
					## Interface: 70300
 | 
				
			||||||
## Title: Heimdall
 | 
					## Title: Heimdall
 | 
				
			||||||
## Version: 3.2.1
 | 
					## Version: 3.2.2
 | 
				
			||||||
## Notes: Watches over areas and alerts when hostiles spotted
 | 
					## Notes: Watches over areas and alerts when hostiles spotted
 | 
				
			||||||
## Author: Cyka
 | 
					## Author: Cyka
 | 
				
			||||||
## SavedVariables: Heimdall_Data
 | 
					## 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 scale number?
 | 
				
			||||||
	---@param ttl number?
 | 
						---@param ttl number?
 | 
				
			||||||
	local function PlantFrame(x, y, frame, scale, ttl)
 | 
						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
 | 
							scale = scale or 1
 | 
				
			||||||
		ttl = ttl or 1
 | 
							ttl = ttl or 1
 | 
				
			||||||
		local w, h = BattlefieldMinimap:GetSize()
 | 
							local w, h = BattlefieldMinimap:GetSize()
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user