Skip to content

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
Fixed issue where typing integer would generate console error
  • Loading branch information
Catlin Buckley authored Apr 3, 2017
1 parent 7f1a27c commit cb99ff5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions roll20CriticalHitOrFail.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//Critical Sound Effects v1.2.2
//Critical Sound Effects v1.2.3

on('ready',function(){
'use strict';
Expand Down Expand Up @@ -38,7 +38,8 @@ on('ready',function(){
}

function criticalHitOrFail(content) {
content.rolls.forEach(function(roll) {
if (content.rolls) {
content.rolls.forEach(function(roll) {
if (roll.dice <= 2 && roll.sides === 20) {
var allsongs = findObjs({
_type: 'jukeboxtrack',
Expand Down Expand Up @@ -93,6 +94,7 @@ on('ready',function(){
});
}
});
}
}
});

Expand Down

0 comments on commit cb99ff5

Please sign in to comment.