Lee-Talman / knave2e

The Unofficial Knave Second Edition system for FoundryVTT. This game system is an independent production by Lee Talman and is not affiliated with Questing Beast LLC.
https://www.drivethrurpg.com/product/435009/Knave-2e-Kickstarter-Preview
Other
1 stars 0 forks source link

Monsters can't use weapons with ammo requirement #28

Open MMDaemon opened 3 weeks ago

MMDaemon commented 3 weeks ago

I have most of my weapons templated so when I have a Bow the default ammo is arrows.

When I give this weapon to a monster and want to attack with it I get the following Error: items.mjs:353 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'arrow') at hasAmmo (items.mjs:353:50) at Knave2eActorSheet.onAttack (items.mjs:238:6) at HTMLFormElement.dispatch (jquery.min.js:2:40035) at v.handle (jquery.min.js:2:38006)

I can work around this by removing the ammo requirement from the Item.

Would it be possible to

Lee-Talman commented 3 weeks ago

I will take a look at this for the 0.4.0 release - should be easy enough to just remove the ammo requirement.