Similar questions to this have been asked, but I wasn't able to find one that answers this specifically.
Say that you have resistance to slashing damage as well as resistance to fire damage (no caveats to nonmagical damage or not). You are fighting someone who has a flaming greataxe (just an enchanted item) that deals 1d12+STR slashing damage, plus 1d6 fire damage on hit and they hit you.
How do you calculate the damage?
- (1d12+1d6+STR)/2
- (1d12/2) + (1d6/2) + STR
- (1d12+STR/2) + (1d6/2)
- something else?
Best Answer
You would calculate the resistance to each damage separately. The modifier should also have a damage type, and you would include it with the dice roll for calculating resistance.
For example, with a melee weapon like a greataxe where you apply your strength to its slashing damage you would calculate \$(1{\rm d}12 + \text{Str Mod})\div2\;\$ (rounding down) slashing damage. And then calculate \$1{\rm d}6 \div 2\$ (also rounding down) fire damage.
So your final formula would be:
$$\left\lfloor \frac{1{\rm d}12 + \text{Str Mod}}{2} \right\rfloor + \left\lfloor \frac{1{\rm d}6}{2} \right\rfloor$$
(Those lines on the sides being the floor/round down symbols.)
RAW would probably be as described in this answer. They reference: