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.
|
-- chaos bag during search operations to avoid this.
|
||||||
function onObjectSearchStart(object, playerColor)
|
function onObjectSearchStart(object, playerColor)
|
||||||
findChaosBag()
|
findChaosBag()
|
||||||
if object.getGUID() == chaosbag.getGUID() then
|
if object == chaosbag then
|
||||||
bagSearchers[playerColor] = true
|
bagSearchers[playerColor] = true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@ -157,7 +157,7 @@ end
|
|||||||
-- chaos bag during search operations to avoid this.
|
-- chaos bag during search operations to avoid this.
|
||||||
function onObjectSearchEnd(object, playerColor)
|
function onObjectSearchEnd(object, playerColor)
|
||||||
findChaosBag()
|
findChaosBag()
|
||||||
if object.getGUID() == chaosbag.getGUID() then
|
if object == chaosbag then
|
||||||
bagSearchers[playerColor] = nil
|
bagSearchers[playerColor] = nil
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user