yulegeyu
yulegeyu copied to clipboard
撤回bug:点选图片后撤回,新可选的图片依然可选
选择任意模式开始后:
点选小鸭后:
小鸡和小鱼可选,点击撤回后,小鸡和小鱼依然可选:
也发现这个问题了。不太懂typescript,提供一点思路: src/core/game.ts中doRevert() 的439行添加代码恢复覆盖关系:
block.higherThanBlocks.forEach((higherThanBlock) => { _.push(higherThanBlock.lowerThanBlocks, (lowerThanBlock) => { return lowerThanBlock.id === block.id; });