From 0460bf51b3e587a836377141efb81b92b9184cb5 Mon Sep 17 00:00:00 2001 From: Jack Holloway Date: Sat, 20 May 2023 21:14:19 +0100 Subject: [PATCH] Only exlcude self on effect if its actually an aura --- Changelog.md | 4 ++++ src/lib/AAHelpers.mjs | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Changelog.md b/Changelog.md index db5047f..af1632d 100644 --- a/Changelog.md +++ b/Changelog.md @@ -147,3 +147,7 @@ Spikegrowth example macro fixed. - Improve wound detection in SWADE. - In some cases, an aura effect would be reapplied even after the aura was gone#271 - Transferred Effects aren't removed if the source token is deleted #269 + +# 0.6.1 + +- Effects which had previously been marked as active auras and had ignore self checked, but were no longer marked as active effects would cause the effect to not be applied to the actor. diff --git a/src/lib/AAHelpers.mjs b/src/lib/AAHelpers.mjs index 29d81c7..eff9afc 100644 --- a/src/lib/AAHelpers.mjs +++ b/src/lib/AAHelpers.mjs @@ -303,7 +303,8 @@ export class AAHelpers { // args: duplicate(args), // ignoreSelf: getProperty(change, "effect.flags.ActiveAuras.ignoreSelf"), // }) - if (getProperty(change, "effect.flags.ActiveAuras.ignoreSelf") === true) { + const AAFlags = getProperty(change, "effect.flags.ActiveAuras"); + if (AAFlags?.isAura === true && AAFlags?.ignoreSelf === true) { Logger.info( game.i18n.format("ACTIVEAURAS.IgnoreSelfLog", { effectDataLabel: change.effect.label,