Skip to content

Commit

Permalink
Monsters with legendary actions appear in tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
MrPrimate committed Dec 3, 2020
1 parent c2c2add commit b77fe47
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
* Updating README and module dependencies
* Option to use generic magic item icons from DDB
* Fix a darkvision bug with goggles of night
* If a monster has legendary actions it appears in token bar 2, as per SRD monsters

# v 0.1.1

Expand Down
4 changes: 3 additions & 1 deletion src/muncher/monster/monster.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,9 @@ export function parseMonsters(monsterData) {
const legendaryActions = getLegendaryActions(monster, DDB_CONFIG, actions);
items.push(...legendaryActions.legendaryActions);
foundryActor.data.resources["legact"] = legendaryActions.actions;

foundryActor.token.bar2 = {
attribute: "resources.legact"
};
}

if (monster.specialTraitsDescription != "") {
Expand Down

0 comments on commit b77fe47

Please sign in to comment.