.align 2
.thumb
.thumb_func
push {r4, r5, lr}
mov r4, r0
mov r0, #0x02
lsl r0, #0x8
mov r1, #0x3D
add r0, r1
bl FlagCheck
cmp r0, #0x0
beq End
cmp r4, #0x0
beq SuperEffective
cmp r4, #0x5
beq SuperEffective
cmp r4, #0x14
beq Ineffective
b End
SuperEffective:
mov r4, #0x14
b End
Ineffective:
mov r4, #0x5
End:
ldr r5, .damageAddr
ldr r0, [r5, #0x0]
mul r0, r4
ldr r1, .returnAddr
bx r1
FlagCheck:
ldr r2, .flagAddr
bx r2
.align 2
.returnAddr: .word 0x0801e77d
.flagAddr: .word 0x0806e6d1
.damageAddr: .word 0x02023d50
.end
That's your Inverse Battles hack, and I have a question how do I change the flag, so it's not Pokéflute? You said 6th and 8th lines have to be changed, and I understand what I have to change in 8th, but I have no idea what do I have to change in 6th line?