Skip to content

Commit

Permalink
fix: Make raw characteristic rolls work again.
Browse files Browse the repository at this point in the history
  • Loading branch information
xdy committed Aug 30, 2020
1 parent 1b97420 commit ad9e558
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/module/sheets/TwodsixActorSheet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ export class TwodsixActorSheet extends ActorSheet {
const item = this.actor.getOwnedItem(itemId) as TwodsixItem;

if (dataset.roll) {
if (item.type === 'skills' && event.shiftKey) {
if (item != null && 'skills' === item.type && event.shiftKey) {
this.rollSkill(itemId, event, dataset);
} else {
const roll = new Roll(dataset.roll, this.actor.data.data);
Expand Down

0 comments on commit ad9e558

Please sign in to comment.