Saibot393 / enhancedcombathud-pf2e

GNU General Public License v3.0
2 stars 3 forks source link

Hide shield related buttons/icons if no shield equiped #21

Open uniwars opened 4 months ago

uniwars commented 4 months ago

Hi, would that be possible to only show shield related feature if the character actually has a shield held/worn ? So it would make some free space for non-shield user. (for example the shield block reaction adds the "abilities" reaction section for my PC because I'm a fighter but I don't have a shield.)

I have the shield cantrip, could the shield block reaction of the spell only appear when the spelle ffect is on the actor and not hidden in the "abilities" category but more visible ?

Saibot393 commented 4 months ago

The problem with filtering out these shield actions is, that they do not have an internal tag, so detecting them is rather hard. What i could do is filter for a trait "Shield", so that you could manually add this trait to all actions you wish to ignore when no shield i in your characters inventory.

Regarding the shield spell: I will look into it, before i do this i want to improve generell item filtering, but thats deffinetly something that would make sense to add with that

Saibot393 commented 4 months ago

With the new favorite system of v1.11.0 you can now at least remove hide shield related class features from the actions bars, they will still appear in the abilities panel though