So that worked, but I encountered a weird issue where if I have a range of 1 and try to do a diagonal attack after moving the unit it will simply do nothing and end its turn. However, if it has not moved it will teleport to index 0 and attack from there.