I did the changes and the blue range area did get equal the unit’s AP, but I could only click on adjacente tiles to move, I did some minor adaptations and got the expected behavior. (hope I had not created a bug haha)
Thank-you again.