diff --git a/modules/pegasus-utility.js b/modules/pegasus-utility.js index af531ec..a75a87b 100644 --- a/modules/pegasus-utility.js +++ b/modules/pegasus-utility.js @@ -1258,11 +1258,11 @@ export class PegasusUtility { applyDef.actor.removeAgitatorHindrance() } } - // Delete all effects if no more tacticians (ie deleted case) + // Delete all effects if no more agtators (ie deleted case) if (agitatorTokens.length == 0) { let allTokens = canvas.tokens.placeables.filter(token => token.actor.type == "character") for (let token of allTokens) { - if (token.actor.addAgitatorHindrance()) { + if (token.actor.hasAgitatorHindrance()) { token.actor.removeAgitatorHindrance() } }