Xacus / demonlord

Shadow of the Demonlord for FoundryVTT.
28 stars 22 forks source link

Attack roll getting defense value from attacker #98

Closed aeciobf closed 2 years ago

aeciobf commented 2 years ago

When a roll attack is made, the defense value references the attacker value. Screenshot_23

aeciobf commented 2 years ago

I found a workaround. The error is in the src/module/pixi/token-manager.js Comment: return canvas.tokens.controlled Insert: return [...game.user.targets]

class TokenManager { get targets() { if (game.settings.get('demonlord', 'targetingOnSelect')) { //return canvas.tokens.controlled return [...game.user.targets] } return [...game.user.targets] }