Refactor code structure for improved readability and maintainability
This commit is contained in:
@@ -1037,5 +1037,10 @@ function HMGT:OnCommReceived(prefix, message, distribution, sender)
|
||||
tonumber(duration)
|
||||
)
|
||||
end
|
||||
elseif msgType == HMGT.MSG_LURA_RUNES then
|
||||
local payload = message:match("^%a+|(.+)$") or ""
|
||||
if HMGT.EncounterAlerts and HMGT.EncounterAlerts.HandleLuraRunesComm then
|
||||
HMGT.EncounterAlerts:HandleLuraRunesComm(senderName, payload)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user