From ef740f4c0daef8d4bec8cd90f5e2223fb4ee6205 Mon Sep 17 00:00:00 2001 From: sladecraven Date: Wed, 5 Oct 2022 09:19:59 +0200 Subject: [PATCH] Fix #94 agitators hindrance --- modules/pegasus-utility.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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() } }