Skip to content

Commit

Permalink
Only exlcude self on effect if its actually an aura
Browse files Browse the repository at this point in the history
  • Loading branch information
MrPrimate committed May 20, 2023
1 parent 2f20f44 commit 0460bf5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
3 changes: 2 additions & 1 deletion src/lib/AAHelpers.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 0460bf5

Please sign in to comment.