wsaunders1014 / ShowDragDistance

Shows distance you dragged the token, similar to pressing ctrl.
10 stars 13 forks source link

broadcast of token dragging as a player is not working anymore #34

Closed mech-tools closed 4 years ago

mech-tools commented 4 years ago

Hello,

Seems that with the latest version, when a player is dragging his token, the path is not broadcasted to others.

mech-tools commented 4 years ago

Yep, confirmed.

Here: https://github.com/wsaunders1014/ShowDragDistance/blob/master/showdragdistance.js#L525 Only the GM can broadcast the path.

Quick fix is:

if(!this.data.hidden && ((game.user.isGM && altPressed) || !game.user.isGM)){
    [...]
}
wsaunders1014 commented 4 years ago

Fixed in 2.1.3