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 (axe) +1d12+STR slashing damage, plus 1d6 (fire) + modifierfire 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?