Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐞 Removing Traits does not seem to work #467

Open
2 of 7 tasks
dfaggioli opened this issue Oct 11, 2024 · 1 comment
Open
2 of 7 tasks

🐞 Removing Traits does not seem to work #467

dfaggioli opened this issue Oct 11, 2024 · 1 comment

Comments

@dfaggioli
Copy link

Check for existing bug reports before submitting.

  • I searched for existing Bug Reports and found no similar reports.

Expected Behavior

It should be possible to remove Traits, e.g., if we have:

statblock: true
name: umano_comune
extends: creatura
creatura: Umano Comune
ac: 2
hit_dice: 6+1d3
hp: 8
mana: 0
vestiti: "[[Abiti Normali]]"
abilita_razza:
  - name: "[[Lingua delle Lande]]"
  - name: "[[Capacita di Guarigione|Capacità di Guarigione]]"
  - name: TEST
    desc: test

And:

statblock: true
name: umano_schiavo_gladiatore
monster: umano_comune
creatura: Umano Schiavo-Gladiatore
abilita_razza-:
  - name: TEST
abilita_razza+:
  - name: TEST2
    desc: test2

The latter should have, in "abilita_razza": "[[Lingua delle Lande]]", "[[Capacita di Guarigione|Capacità di Guarigione]]" and TEST2

Current behaviour

After 12df383, Traits have improved a lot! In fact, now overriding and adding Traits works fine (for me). What still doesn't work is removing them :-)

In fact, sticking to the example above, "abilita_razza" still has the "TEST"

image

Reproduction

Just create a statblock that inherits some Traits (say, "A") from another one (e.g., using monster:) and then try to remove any with A-:.

Which Operating Systems are you using?

  • Android
  • iPhone/iPad
  • Linux
  • macOS
  • Windows

Obsidian Version Check

1.6.7

Plugin Version

4.7.8

Confirmation

  • I have disabled all other plugins and the issue still persists.

Possible solution

No response

@jameswtelfer
Copy link

I think you have a mistake in your YAML, I came across this issue when wrestling with this feature myself, albeit with a DND5e stat block.

These lines:

extends: creatura
creatura: Umano Comune

Should be

extends: Umano Comune

My working example (Obsidian 1.7.4 / Fantasy Stat Blocks 4.7.8) is this:

extends: Deep Gnome (Svirfneblin)
name: Abbot Kavoda
ac: 12
traits-:
  - name: Innate Spellcasting
traits+:
  - name: Innate Spellcasting.
    desc: |
      The gnome’s innate spellcasting ability is Intelligence (spell save DC 11). It can innately cast the following spells, requiring no material components:
      At will: nondetection (self only)
      1/day each: blindness/deafness, blur, disguise self
      3/day each: meld into stone

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants