Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/accessories/SearchAssistant.ttslua
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ function createContextMenu()
self.clearContextMenu()
self.addContextMenuItem("Search Starting", function(triggeringColor)
if ongoingSearch then return end
getColors()
getColors(triggeringColor)

if owner == "Mythos" then
printToColor("This only works for playermats.", triggeringColor, "Red")
Expand Down Expand Up @@ -101,7 +101,7 @@ function onNumberTyped(playerColor, number)
end
end

function getColors()
function getColors(messageColor)
-- intentionally global
owner = GUIDReferenceApi.getOwnerOfObject(self)
if owner == "Mythos" then
Expand All @@ -121,7 +121,7 @@ end
function startSearch(messageColor, number)
if ongoingSearch then return end

getColors()
getColors(messageColor)

topCardDetected = false

Expand Down
Loading