Skip to content

Commit

Permalink
Fixed error when rolling 2d20
Browse files Browse the repository at this point in the history
  • Loading branch information
Catlin Buckley authored Mar 14, 2017
1 parent 7e913d9 commit 7f1a27c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions roll20CriticalHitOrFail.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//Critical Sound Effects v1.2.1
//Critical Sound Effects v1.2.2

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

if (roll.dice === 2 && roll.sides === 20) {
if (roll.dice === 2 && roll.sides === 20 && roll.mods && roll.mods.customCrit) {
if (keptResultIsCriticalHit(roll)) {
play(criticalHit);
}
Expand Down

0 comments on commit 7f1a27c

Please sign in to comment.