Skip to content

Commit

Permalink
Merge pull request #52 from Lithl/master
Browse files Browse the repository at this point in the history
Exalted Successes infinite loop bug
  • Loading branch information
SteveKoontz committed Apr 2, 2015
2 parents 7e997fc + 7d376d5 commit 00fb617
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion Exalted Successes/Exalted Successes.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ var bshields = bshields || {};
bshields.exalted = (function() {
'use strict';

var version = 2.0;
var version = 2.1;

function handleInput(msg) {
var json = msg.type === 'rollresult' ? JSON.parse(msg.content) : null,
Expand All @@ -31,6 +31,10 @@ bshields.exalted = (function() {
});
});
}

if (results.length === 0) {
return;
}

_.each(results, function(roll) {
_.each(roll, function(die) {
Expand Down
2 changes: 1 addition & 1 deletion Exalted Successes/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Exalted Successes",
"version": "2.0",
"version": "2.1",
"description": "Reports successes on d10 rolls for use with the Exalted game system.",
"authors": "Brian Shields",
"roll20userid": "235259",
Expand Down

0 comments on commit 00fb617

Please sign in to comment.