Rughalt / D35E

3.5e SRD implementation for Foundry VTT.
https://legaciesofthedragon.com
GNU General Public License v3.0
37 stars 30 forks source link

Special Action 'Set' appears broken when applied to Buffs from Spells #898

Closed Eldintux closed 2 years ago

Eldintux commented 2 years ago

Found another bug in buffs/Special Actions. When applying a number through special action to @item.level it always seems to apply to the first buff not the named one. So I have buff which apply from both the Virtue & Detect Magic spells. Virtue doesn't need a level but Detect Magic does. Then updating the item/level through detect Magic it always is applied to the first Buff even if the detect Magic was the second spell. And these Buffs don't have to be active just on the target. Further if the target has Wild Shapes on their sheets the item.level is applied to the first WildShape Buff & not the buff from any other spell.

Special Action for Detect Magic Spell Create unique "Detecting" from "SharedData.buffs" on target;Set buff "Detecting" field data.level to max(1,(@cl)) on target;Activate buff "Detecting" on target

Foundry v9.241 D35E 0.99.0 No Modules (except a SharedData one which holds my buffs, have tried it from a world compendium too with out the SharedData Module) New World & Characters (but persisted in Existing Worlds too) Couldn't see any errors in Logs - but added here Screenshot from 2022-01-08 19-38-18

github-actions[bot] commented 2 years ago

Thanks for opening an issue, traveller! If your issue is related to an actor or an item, sending thing that is broken will help a lot and speed up debugging.

How to send an item? > - If item is owned by a character, drag and drop it to world item list. > - Right click on item in browser item list and click export. > - Attach downloaded item to this ticket. How to send an actor? > - Right click on actor in browser actor list and click export. > - Attach downloaded actor to this ticket.