Skip to content

Commit 7d8b8ab

Browse files
Fix creating Extended Test when Actor has no Skill (#2624)
1 parent c9f4de4 commit 7d8b8ab

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

src/documents/actor.js

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -253,14 +253,8 @@ export default class ActorWFRP4e extends WarhammerActor
253253
await test.roll();
254254
}
255255
else {
256-
let skill = this.itemTags["skill"].find(i => i.name == item.test.value)
257-
if (skill) {
258-
let test = await this.setupSkill(skill, context, options);
259-
await test.roll();
260-
}
261-
else {
262-
ui.notifications.error(`${game.i18n.format("ExtendedError2", { name: item.test.value })}`)
263-
}
256+
let test = await this.setupSkill(item.test.value, context, options);
257+
await test.roll();
264258
}
265259
}
266260

static/lang/en.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -668,7 +668,6 @@
668668
"ExtendedTest.Remove" : "Remove",
669669
"Completed": "Completed",
670670
"ExtendedError1": "Please enter a positive integer for the Extended Test's Target",
671-
"ExtendedError2": "Could not find characteristic or skill to match: {name}",
672671

673672
"XP": "XP",
674673
"EXP": "EXP",

0 commit comments

Comments
 (0)