Skip to content

Commit 973767a

Browse files
committed
Fix extended test roll mode and reload test skill
close #2284 close #2596
1 parent 06bcecb commit 973767a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/documents/actor.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -244,9 +244,8 @@ export default class ActorWFRP4e extends WarhammerActor
244244
return ui.notifications.error(game.i18n.localize("ExtendedError1"))
245245

246246
context.extended = item.uuid;
247-
context.rollMode = defaultRollMode;
248247
context.hitLocation = false;
249-
context.fields = {difficulty : item.system.difficulty.value || "challenging"}
248+
context.fields = {difficulty : item.system.difficulty.value || "challenging", rollMode : context.fields?.rollMode || defaultRollMode}
250249

251250
let characteristic = warhammer.utility.findKey(item.test.value, game.wfrp4e.config.characteristics)
252251
if (characteristic) {
@@ -272,7 +271,7 @@ export default class ActorWFRP4e extends WarhammerActor
272271
if (!extendedTest) {
273272

274273
//ui.notifications.error(game.i18n.localize("ITEM.ReloadError"))
275-
await this.checkReloadExtendedTest(weapon, this.actor);
274+
await this.checkReloadExtendedTest(weapon, this);
276275
return
277276
}
278277
await this.setupExtendedTest(extendedTest, { reload: true, weapon, appendTitle: " - " + game.i18n.localize("ITEM.Reloading") }, options);

0 commit comments

Comments
 (0)