mclemente / about-face

FoundryVTT Module to rotate tokens on move
Other
7 stars 8 forks source link

When using a Mirror setting, rotating a token doesn't mirror it #45

Closed mclemente closed 1 year ago

mclemente commented 1 year ago

When using a Mirror setting instead of the Rotate setting, rotating a token (SHIFT + movement keys) doesn't mirror it.

The error is on https://github.com/mclemente/about-face/blob/master/scripts/logic.js#L119, where flipOrRotate doesn't have x and y positions and dir isn't used at all.

Example: Mirror Horizontally, SHIFT + A/D doesn't mirror the token. Same for Vertically and W/S.

mclemente commented 1 year ago

Fixed on https://github.com/mclemente/about-face/commit/2c8049602d4e4aaa82add262bf2e318dc70672ea#diff-a2f9859a7925afd20d70d4825709ee85fa48b4f37f93c17bb11094121cc1f6abR200-R214