caewok / fvtt-token-visibility

Advanced token visibility rules for Foundry VTT
MIT License
4 stars 8 forks source link

Setting ignore cover type fails to record the type #70

Closed caewok closed 10 months ago

caewok commented 11 months ago

_token.ignoresCoverType.msak = cover_type.LOW does not work. Need to fix the setter to add the value.

Temp workaround:

api = game.modules.get('tokenvisibility').api;
_token.actor.setFlag("tokenvisibility", "ignoreCoverMSAK", api.COVER.TYPES.LOW);
_token.actor.setFlag("tokenvisibility", "ignoreCoverRSAK", api.COVER.TYPES.LOW);
caewok commented 10 months ago

Will be fixed in v0.6.0.