Skip to content

Commit

Permalink
Merge pull request #103 from kandashi/0.1.56
Browse files Browse the repository at this point in the history
multiple aura tokens
  • Loading branch information
kandashi authored Mar 7, 2021
2 parents 4cbae69 + 63f476c commit 928c2f2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion module.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"title": "Active-Auras",
"description": "Active-Auras",
"author": "Kandashi",
"version": "0.1.55",
"version": "0.1.56",
"minimumCoreVersion": "0.7.5",
"compatibleCoreVersion": "0.7.9",
"packs": [
Expand Down
7 changes: 3 additions & 4 deletions src/aura.js
Original file line number Diff line number Diff line change
Expand Up @@ -610,14 +610,13 @@ Hooks.on("ready", () => {
let MapKey = canvasToken.scene._id;
MapObject = AuraMap.get(MapKey)
let checkEffects = MapObject.effects;
//Check for other types of X aura if the aura token is moved
if (tokenId) {
//Check for other types of X aura if the aura token is moved, removed due to issues with mutliple auras not updating correctly
/*if (tokenId) {
checkEffects = checkEffects.filter(i => i.tokenId === tokenId)
let duplicateEffect = []
checkEffects.forEach(e => duplicateEffect = (MapObject.effects.filter(i => (i.data?.label === e.data?.label) && i.tokenId !== tokenId)));
checkEffects = checkEffects.concat(duplicateEffect)

}
}*/

for (let auraEffect of checkEffects) {

Expand Down

0 comments on commit 928c2f2

Please sign in to comment.