Elemental Nullification

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
No parameters - Returns Nothing               Alternative notes here Nullify_Action

Modify some Target current action (TCA) data
 - 0x00 : Hit flag set to miss 
 - 0x04 : HP damage set to 0x00 
 - 0x05 : Evade Type set to 0x02
 - 0x10 : Special flags 1 set to 0x00
 - 0x11 : Special flags 2 set to 0x00
 - 0x2a : Hit% set to 0x00
Clear some Current Ability data (via Jal)
 - Clear Proc/Reaction mechanics
 - Clear Knockback mechanics
---------------------------------------------------------
00184e40: 3c028019 lui r2,0x8019            |
00184e44: 8c422d90 lw r2,0x2d90(r2)         |r2 = Target Current Action (TCA) Data Pointer
00184e48: 27bdffe8 addiu r29,r29,-0x0018    |
00184e4c: afbf0010 sw r31,0x0010(r29)       |
00184e50: a0400000 sb r0,0x0000(r2)         |Store 0x00 in TCA hit flag (Miss)
00184e54: 3c038019 lui r3,0x8019            |
00184e58: 8c632d90 lw r3,0x2d90(r3)         |r3 = Target Current Action (TCA) Data Pointer
00184e5c: 34020005 ori r2,r0,0x0005         |r2 = 0x05 (Evade type is nullified)
00184e60: a0620002 sb r2,0x0002(r3)         |Store Evade type as nullified (see notes)
00184e64: 3c028019 lui r2,0x8019            |
00184e68: 8c422d90 lw r2,0x2d90(r2)         |r2 = Current Action Data Pointer
00184e6c: a4600004 sh r0,0x0004(r3)         |Store TCA HP Damage = 0
00184e70: a460002a sh r0,0x002a(r3)         |Store Hit% = 0
00184e74: a4600010 sh r0,0x0010(r3)         |Clear Specials flags (1 and 2) 
00184e78: 0c062f3c jal 0x0018bcf0           |-->Called_by_Nullify_Action  Clear Reaction/Proc mechanics if needed
00184e7c: a0400025 sb r0,0x0025(r2)         |Clear Attack Type Flags
00184e80: 0c062f4d jal 0x0018bd34           |-->Remove_Knockback_Flag  Prevents Target to being knocked back
00184e84: 00000000 nop                      |
00184e88: 8fbf0010 lw r31,0x0010(r29)       
00184e8c: 27bd0018 addiu r29,r29,0x0018     
00184e90: 03e00008 jr r31                   
00184e94: 00000000 nop                      

*Notes
 This Byte is checked to skip Elemental_Absorption routine

Return Locations

Battle.bin
00184f00: Elemental_Damage_Modification
001870d0: Ability_Elemental?
001897b4: 26_Equipped:_Steal_Hit_(SP+X)%
00189bc4: 2E_Equipped:Break_Dmg_(PA*WP)
0018ad34: Apply_Status_and_Check_Undead