
I was wondering, is it possible to write a macro for rerolling any 1 once, but only if a condition is met? Here's some info for context, >I'm playing D&D 5e >I'm playing a Sorcerer with Flames of Phlegethos feat (when you roll fire damage reroll any 1 once and keep the new roll) and Chaos Bolt spell (on a hit roll 2d8 + 1d6; the first die decides the type of damage, 3 being fire damage) I know I could always manually reroll, but I was wondering if it would be possible to make a macro that rerolls any 1 from the second d8 and 1d6 but only if 1st d8 rolls a 3? Any suggestions?