61 –Brave (Y) Hit F(MA+X)%

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
[61]
0018ab18: 27bdffe8 addiu r29,r29,-0x0018    |
0018ab1c: afbf0010 sw r31,0x0010(r29)       |
0018ab20: 0c06216e jal 0x001885b8           |-->Magical_Evade_Calculation If Abillity is evadeable roll Ability Evade byte against Ability base Hit / Returns r2
0018ab24: 00000000 nop                      |
0018ab28: 14400007 bne r2,r0,0x0018ab48     #If Attack is not evaded
0018ab2c: 00000000 nop                          |
0018ab30: 0c062289 jal 0x00188a24               |-->Calculate_Accuracy_for_Magical Set XA and YA, applies XA changes (Status, Compat, Support,element), uses XA+YA as Hit% (Modified by faith) / Returns r2
0018ab34: 00000000 nop                          |
0018ab38: 14400003 bne r2,r0,0x0018ab48         #If Attack hits
0018ab3c: 00000000 nop                              |
0018ab40: 0c061ba9 jal 0x00186ea4                   |-->-Y Brave Store Ability Y as Target Brave loss
0018ab44: 00000000 nop                              |
0018ab48: 8fbf0010 lw r31,0x0010(r29)       END
0018ab4c: 27bd0018 addiu r29,r29,0x0018
0018ab50: 03e00008 jr r31
0018ab54: 00000000 nop

Return location

Battle.bin
0018b97c : Pre Formula Setup