Skip to content

Commit

Permalink
fix(statblock-import): Log end of command correctly.
Browse files Browse the repository at this point in the history
  • Loading branch information
symposion committed Apr 6, 2017
1 parent 7475265 commit e208c18
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/modules/monster-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ module.exports = class MonsterManager extends ShapedModule {

importStatblock(options) {
this.logger.info('Importing statblocks for tokens $$$', options.selected.graphic);
_.each(options.selected.graphic, (token) => {
return Promise.all(options.selected.graphic.map((token) => {
const error = `Could not find GM notes on either selected token ${token.get('name')} or the character ` +
'it represents. Have you pasted it in correctly?';
const text = token.get('gmnotes');
Expand All @@ -174,7 +174,7 @@ module.exports = class MonsterManager extends ShapedModule {
}

return this.processGMNotes(options, token, text);
});
}));
}

processGMNotes(options, token, text) {
Expand Down

0 comments on commit e208c18

Please sign in to comment.