Ignore bonk events for source==destination (self harm)

This commit is contained in:
2025-01-13 14:09:57 +01:00
parent 770420a5b2
commit 373ca377a2
3 changed files with 10 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
## Interface: 70300
## Title: Heimdall
## Version: 3.4.1
## Version: 3.4.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

@@ -60,6 +60,13 @@ function shared.BonkDetector.Init()
return
end
if source == destination then
if Heimdall_Data.config.bonkDetector.debug then
print(string.format("[%s] Source and destination are the same, ignoring event", ModuleName))
end
return
end
local currentTime = GetTime()
local throttle = Heimdall_Data.config.bonkDetector.throttle