tidy5e-sheet icon indicating copy to clipboard operation
tidy5e-sheet copied to clipboard

TidySheet5e shows error notification if Exhaustion mapping in Tidysheet does not match CUB

Open eclarke12 opened this issue 2 years ago • 0 comments

See https://github.com/death-save/combat-utility-belt/issues/683

Fix add {warn: false} in game.cub.hasCondition call https://github.com/sdenec/tidy5e-sheet/blob/5b335cce2ada9cdd07d378430e517ded8dcfe020/src/scripts/app/exhaustion.js#L162

Alternately, remove hasCondition call and simply call removeCondition with {warn: false}

 if (tier != `${effectName} ${exhaustion}`){
        // console.log(tier);
        await game.cub.removeCondition(tier, [token], {warn: false});
 }

eclarke12 avatar Jun 17 '22 05:06 eclarke12