From 04cba9c1ee6c1ec8313480beefdbb7e088ea156c Mon Sep 17 00:00:00 2001 From: crnormand Date: Thu, 29 Sep 2022 19:29:50 -0400 Subject: [PATCH] Fix GCS import when melee has no level --- changelog.md | 4 ++++ module/actor/actor.js | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/changelog.md b/changelog.md index 3bb6d93a4..0099f7183 100644 --- a/changelog.md +++ b/changelog.md @@ -2,6 +2,10 @@ If you can't access the Google doc, here is a [PDF](https://github.com/crnormand/gurps/raw/main/docs/Guide%20for%20GURPS%204e%20on%20Foundry%20VTT.pdf) of the latest version. +Release 0.15.6 + +- Fix GCS import when melee attack has no level. + Release 0.15.5 9/28/2022 - Fixed drag and drop items between non-GM characters diff --git a/module/actor/actor.js b/module/actor/actor.js index 64a16381e..71e79fcc6 100644 --- a/module/actor/actor.js +++ b/module/actor/actor.js @@ -1849,7 +1849,7 @@ export class GurpsActor extends Actor { if (!!m.notes && w.usage_notes) m.notes += '\n' + w.usage_notes m.pageRef(i.reference || '') m.mode = w.usage || '' - m.import = w.calc?.level.toString() || '0' + m.import = w.calc?.level?.toString() || '0' m.damage = w.calc?.damage || '' m.reach = w.reach || '' m.parry = w.calc?.parry || ''