Disable alerts that have ttl=0
This commit is contained in:
@@ -245,8 +245,11 @@ function shared.MinimapTagger.Init()
|
||||
end
|
||||
|
||||
if string.find(msg, "^I see") then
|
||||
if Heimdall_Data.config.minimapTagger.debug then
|
||||
print(string.format("[%s] Found alert in message: %s", ModuleName, msg))
|
||||
if Heimdall_Data.config.minimapTagger.tagTTL == 0 then
|
||||
if Heimdall_Data.config.minimapTagger.debug then
|
||||
print(string.format("[%s] Tag TTL is 0, ignoring message: %s", ModuleName, msg))
|
||||
end
|
||||
return
|
||||
end
|
||||
local x, y = string.match(msg, "%((%d+%.%d+)%s*,%s*(%d+%.%d+)%)")
|
||||
if Heimdall_Data.config.minimapTagger.debug then
|
||||
@@ -257,6 +260,12 @@ function shared.MinimapTagger.Init()
|
||||
end
|
||||
end
|
||||
if string.find(msg, "^I am in combat with") then
|
||||
if Heimdall_Data.config.minimapTagger.combatTTL == 0 then
|
||||
if Heimdall_Data.config.minimapTagger.debug then
|
||||
print(string.format("[%s] Combat TTL is 0, ignoring message: %s", ModuleName, msg))
|
||||
end
|
||||
return
|
||||
end
|
||||
if Heimdall_Data.config.minimapTagger.debug then
|
||||
print(string.format("[%s] Found combat alert in message: %s", ModuleName, msg))
|
||||
end
|
||||
@@ -269,6 +278,12 @@ function shared.MinimapTagger.Init()
|
||||
end
|
||||
end
|
||||
if string.find(msg, " killed ") then
|
||||
if Heimdall_Data.config.minimapTagger.alertTTL == 0 then
|
||||
if Heimdall_Data.config.minimapTagger.debug then
|
||||
print(string.format("[%s] Alert TTL is 0, ignoring message: %s", ModuleName, msg))
|
||||
end
|
||||
return
|
||||
end
|
||||
if Heimdall_Data.config.minimapTagger.debug then
|
||||
print(string.format("[%s] Found death alert in message: %s", ModuleName, msg))
|
||||
end
|
||||
|
Reference in New Issue
Block a user