Observe a duplicate item has been inserted and the destroyed item has been removed.
This is happens because currently updateIndexFromDestroyedItems is passed in an index of 1 and it only searches the source array for destroyed items up to i < 1 however in the source array our destroyed item is at index 1, therefore the destroyed item's influence on the required indexes is ignored.
Steps to reproduce issue:
strategyMove
This is happens because currently
updateIndexFromDestroyedItems
is passed in anindex
of 1 and it only searches the source array for destroyed items up toi < 1
however in the source array our destroyed item is at index 1, therefore the destroyed item's influence on the required indexes is ignored.