55 –PA (Y) Hit (MA+X)%

From Final Fantasy Hacktics Wiki
(Redirected from 0018a698 - 0018a6f4)
Jump to navigation Jump to search
[55]
0018a698: 27bdffe8 addiu r29,r29,0xffe8     |
0018a69c: afbf0010 sw r31,0x0010(r29)       |
0018a6a0: 0c06216e jal 0x001885b8           |-->Magical_Evade_Calculation If Abillity is evadeable roll Ability Evade byte against Ability base Hit / Returns r2
0018a6a4: 00000000 nop                      |
0018a6a8: 1440000f bne r2,r0,0x0018a6e8     #If Attack is not evaded
0018a6ac: 00000000 nop                          |
0018a6b0: 0c0622a1 jal 0x00188a84               |-->MA_%2B_X_without_faith Set XA ans YA, applies magical modifier (no faith) and compat, uses XA+YA as Hit% - returns r2
0018a6b4: 00000000 nop                          |
0018a6b8: 1440000b bne r2,r0,0x0018a6e8         #If Attack hits
0018a6bc: 00000000 nop                              |
0018a6c0: 3c028019 lui r2,0x8019                    |
0018a6c4: 904238fa lbu r2,0x38fa(r2)                |r2 = Current Ability used Ability Y
0018a6c8: 3c038019 lui r3,0x8019                    |
0018a6cc: 8c632d90 lw r3,0x2d90(r3)                 |r3 = Target Current Action (TCA) data pointer
0018a6d0: 3042007f andi r2,r2,0x007f                |r2 = Y without 0x80 (no bonus flag)
0018a6d4: a0620014 sb r2,0x0014(r3)                 |Store Ability Y as TCA PA loss
0018a6d8: 3c038019 lui r3,0x8019                    |
0018a6dc: 8c632d90 lw r3,0x2d90(r3)                 |r3 = TCA data pointer
0018a6e0: 34020001 ori r2,r0,0x0001                 |r2 = 0x01
0018a6e4: a0620025 sb r2,0x0025(r3)                 |Set TCA Attack Type as Pseudo-Status
0018a6e8: 8fbf0010 lw r31,0x0010(r29)       END
0018a6ec: 27bd0018 addiu r29,r29,0x0018
0018a6f0: 03e00008 jr r31
0018a6f4: 00000000 nop

Return location

Battle.bin
0018b97c : Pre Formula Setup