Comments (5)
Thanks for the report. The problem is not with versatile, per se, because it works on normal weapons. Something to do with how Living Weapon is implemented. I am investigating.
from fvtt-token-action-hud-pf2e.
I initially noticed this bug when implementing the following AdjustStrike rule for unarmed attacks in my own game. Putting it here in case it helps.
{
"key": "AdjustStrike",
"definition": [
"item:trait:unarmed"
],
"mode": "add",
"value": "versatile-cold",
"property": "weapon-traits"
}
from fvtt-token-action-hud-pf2e.
The Living Weapon "weapon" doesn't have the weapon.system.traits.toggles (toggles is missing) object, so the code fails to obtain the versatile information. This is different than how objects, such as a dagger, work. This will take some investigation of how upstream does it via the character sheet.
from fvtt-token-action-hud-pf2e.
Not sure how to resolve yet, but the problem is that the ID of the feat and of the weapon are the same:
At first glance, this appears to be an upstream flaw from PF2e system.
The only item on the actor with the ID is the feat item, not the weapon item. The weapon item doesn't actually exist in actor.items.
So, in this case, when the following code is called:
const weapon = coreModule.api.Utils.getItem(actor, itemId)
It is getting the feat object, not the weapon object.
I am not yet sure how to handle this. A fix may take some time.
from fvtt-token-action-hud-pf2e.
Token Action HUD code will need to change from the current method of obtaining the weapon by ID to instead using multiple elements, similar to how rollStrike() handles it.
from fvtt-token-action-hud-pf2e.
Related Issues (20)
- Comparisons against 5.* system versions provide incorrect results in version 5.10.* HOT 3
- Incorrect labels & missing kineticist impulses following 2e system update HOT 6
- 'Blank ARMY' when no token selected HOT 2
- [Enhancement] Disallow Initiative Rolls After Combat Start HOT 1
- [FEATURE] Call hook when hovering over and action HOT 3
- Spell casting does not use the proper rank as of PF2e 5.12.0
- Rolling initiative from the Attributes menu does not honor the roll dialog option as of PF2e 5.12.3 HOT 2
- Bug : Unable to cast spell from HUD since 5.12.x HOT 4
- Missing Toggles for various abilities HOT 16
- HUD working for some PC's but not for others (PF2E) HOT 3
- [BUG] Shields Causing HUD to Stop Working HOT 30
- Token Action Hud won't open for players or NPCs - Console error: TypeError: Cannot read properties of undefined HOT 3
- Recovery Check opens perception check popup HOT 4
- Cannot read properties of undefined (reading 'filter') for Monster Tokens HOT 9
- Equipment tags aren't being shown on the actor sheet HOT 7
- Kineticist toggles no longer show up under Strike HOT 4
- Rolling initiative from Attributes rolls default skill instead of skill clicked. HOT 1
- Shift + Click does not change roll dialog behavior HOT 3
- Perception Numbers Don't Match HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fvtt-token-action-hud-pf2e.