Elemental Absorb/Status

From Final Fantasy Hacktics Wiki
Revision as of 19:02, 18 April 2022 by Orkney (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
No Parameters 

Returns r2 = 0x00 if Proc is triggered / Else 0x00 (r2 don't seem to be ever used)
---------------------------------------------------------------------------------
001887c4: 27bdffe8 addiu r29,r29,-0x0018    |
001887c8: afbf0010 sw r31,0x0010(r29)       |
001887cc: 0c061c3f jal 0x001870fc           |-->Elemental Absorption HP damage might becomes HP recovery - Changes Attack Type from 0x80 to 0x40 (HP recovery)
001887d0: 00000000 nop                      |
001887d4: 0c062130 jal 0x001884c0           |-->Conditional Status Proc Roll (19%) Returns r2 = 0x00 if Proc is triggered (and enables TCA special flag 2 0x02)
001887d8: 00000000 nop                      |
001887dc: 14400004 bne r2,r0,0x001887f0     #If Proc is triggered /Else branch to END with r2 = 0x01
001887e0: 00000000 nop                          |
001887e4: 0c061fad jal 0x00187eb4               |-->Apply status (to action) - (Preserve hit status, evade type, hit %) Add Ability status - if successful update TCA Attack type
001887e8: 00000000 nop                          |
001887ec: 00001021 addu r2,r0,r0                |r2 = 0x00
001887f0: 8fbf0010 lw r31,0x0010(r29)       END
001887f4: 27bd0018 addiu r29,r29,0x0018        
001887f8: 03e00008 jr r31                      
001887fc: 00000000 nop                         

Return location

Battle.bin
00188994: Truth/Formula_5E-5F_Magical_damage