52 Dmg (CasMaxHP-CasCurHP) 100% Add Status Caster in AoE: DmgSelf (CasCurHP)

From Final Fantasy Hacktics Wiki
(Redirected from 0018a554 - 0018a5e0)
Jump to navigation Jump to search

[52]

0018a554: 3c048019 lui r4,0x8019            |
0018a558: 8c842d98 lw r4,0x2d98(r4)         |r4 = Target data pointer
0018a55c: 3c038019 lui r3,0x8019            |
0018a560: 8c632d94 lw r3,0x2d94(r3)         |r3 = Attacker data pointer
0018a564: 27bdffe8 addiu r29,r29,-0x0018    |
0018a568: 1083000a beq r4,r3,0x0018a594     #If Target is not Attacker
0018a56c: afbf0010 sw r31,0x0010(r29)           |
0018a570: 9462002a lhu r2,0x002a(r3)            |r2 = Attacker's Max HP
0018a574: 94630028 lhu r3,0x0028(r3)            |r3 = Attacker's Current HP
0018a578: 3c048019 lui r4,0x8019                |
0018a57c: 8c842d90 lw r4,0x2d90(r4)             |r4 = Target Current Action (TCA) data pointer
0018a580: 00431023 subu r2,r2,r3                |r2 = Attacker's Missing HP
0018a584: a4820004 sh r2,0x0004(r4)             |Store Attacker's Missing HP as TCA HP damage
0018a588: 34020080 ori r2,r0,0x0080             |r2 = 0x80
0018a58c: 0806296c j 0x0018a5b0                 >>Jump avoiding Attacker's section
0018a590: a0820025 sb r2,0x0025(r4)             |Set TCA attack type as HP damage

                                            #Else : Attacker is the Target
0018a594: 3c028019 lui r2,0x8019                |
0018a598: 8c422d90 lw r2,0x2d90(r2)             |r2 = Target Current Action (TCA) data pointer
0018a59c: 94830028 lhu r3,0x0028(r4)            |r3 = Attacker's Current HP
0018a5a0: 00000000 nop                          |
0018a5a4: a4430004 sh r3,0x0004(r2)             |Store Attacker's current HP as TCA HP damage  Target = Attacker this is self destruction
0018a5a8: 34030080 ori r3,r0,0x0080             |r3 = 0x80
0018a5ac: a0430025 sb r3,0x0025(r2)             |Set TCA attack type as HP damage

0018a5b0: 3c038019 lui r3,0x8019            |
0018a5b4: 8c632d98 lw r3,0x2d98(r3)         |r3 = Target data pointer
0018a5b8: 3c028019 lui r2,0x8019            |
0018a5bc: 8c422d94 lw r2,0x2d94(r2)         |r2 = Attacker data pointer
0018a5c0: 00000000 nop                      |
0018a5c4: 10620003 beq r3,r2,0x0018a5d4     #If Target <> Attacker : inflict status
0018a5c8: 00000000 nop                          |
0018a5cc: 0c061fad jal 0x00187eb4               |-->Apply_status_(to_action)_-_(Preserve_hit_status,_evade_type,_hit_%25) Update Target Current Action status infliction/Removal
0018a5d0: 00000000 nop                          |
0018a5d4: 8fbf0010 lw r31,0x0010(r29)       END
0018a5d8: 27bd0018 addiu r29,r29,0x0018
0018a5dc: 03e00008 jr r31
0018a5e0: 00000000 nop

Return location

Battle.bin
0018b97c : Pre Formula Setup