Remove GUID comparison in favor of direct object comparison
This commit is contained in:
parent
cb9c4d2d44
commit
4e500a8cc5
@ -147,7 +147,7 @@ function isCardOrDeck(x) return x.tag == 'Card' or x.tag == 'Deck' end
|
||||
-- chaos bag during search operations to avoid this.
|
||||
function onObjectSearchStart(object, playerColor)
|
||||
findChaosBag()
|
||||
if object.getGUID() == chaosbag.getGUID() then
|
||||
if object == chaosbag then
|
||||
bagSearchers[playerColor] = true
|
||||
end
|
||||
end
|
||||
@ -157,7 +157,7 @@ end
|
||||
-- chaos bag during search operations to avoid this.
|
||||
function onObjectSearchEnd(object, playerColor)
|
||||
findChaosBag()
|
||||
if object.getGUID() == chaosbag.getGUID() then
|
||||
if object == chaosbag then
|
||||
bagSearchers[playerColor] = nil
|
||||
end
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user