Let's say I want a skill's damage to be 50 + (a.atk - b.def). However, if b.def is greater than a.atk, I don't want this part of the formula to reduce the 50 - the damage should just be 50. Yet obviously, if a.atk is greater than b.def, I'd like the difference to be added to the 50. Is there an easy way to achieve this?
