Temporary/triggered effects such as you describe are chronic supported by DDB. Effects like the +1 magic bonus or the +2 AC would either be always on or always off. Your players will have to customize the attack and AC directly on their character sheets to represent those bonuses.
Hi,
I am creating a homebrew fighter subclass. As a class feature it allows to make an additional attack with a shield as a bonus action.
I added an action for the shield and made it a weapon, set its ability score to str and made it proficient.
What I would like to do is make it so if the character has a +1 shield it will give +1 to both the attack and damage. How would I achieve this?
In addition, at a higher level, I want to give a feature which adds +2 to AC but only when using a shield.
Temporary/triggered effects such as you describe are chronic supported by DDB. Effects like the +1 magic bonus or the +2 AC would either be always on or always off. Your players will have to customize the attack and AC directly on their character sheets to represent those bonuses.
Creating Epic Boons on DDB
DDB Buyers' Guide
Hardcovers, DDB & You
Content Troubleshooting