Handled at 08029068:
cmp r1, #0x03
or in raw hex 03 29
This is saying a difference of 3 or less won’t double. To change it to, for example, 5, just make those bytes into 04 29
You also have to change 0802907A in the same way. This is checking if the defender can double.