Skip to content

Commit

Permalink
Add backwards compatibility for old description flags from CE
Browse files Browse the repository at this point in the history
  • Loading branch information
DFreds committed Feb 27, 2023
1 parent 8845d98 commit 8e08db4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/app/effects-panel-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,12 @@ export default class EffectsPanelController {
effectData.infinite = effectData.remainingSeconds === Infinity;

if (game.modules.get('dfreds-convenient-effects')?.active) {
effectData.description = effect.getFlag(
const description = effect.getFlag(
'dfreds-convenient-effects',
'description'
);
effectData.description =
description ?? effect.flags.convenientDescription;
}

effectData.isSupp = effect.isSuppressed;
Expand Down

0 comments on commit 8e08db4

Please sign in to comment.