3C Heal (CasMaxHP*2/5) DmgCas (CasMaxHP/5)

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
[3c]
00186dbc: 3c028019 lui r2,0x8019            |
00186dc0: 8c422d94 lw r2,0x2d94(r2)         |r2 = Attacker data pointer
00186dc4: 3c03cccc lui r3,0xcccc            |
00186dc8: 9442002a lhu r2,0x002a(r2)        |r2 = Attacker's Max HP
00186dcc: 3463cccd ori r3,r3,0xcccd         |r3 = 0xcccccccd  (0,8 * 2^32)
00186dd0: 00430019 multu r2,r3              |Max Hp * 0,8 * 2^32
00186dd4: 3c038019 lui r3,0x8019            |
00186dd8: 8c632d8c lw r3,0x2d8c(r3)         |r3 = Attacker Current Action (ACA) data pointer 
00186ddc: 34020080 ori r2,r0,0x0080         |r2 = 0x80
00186de0: a0620025 sb r2,0x0025(r3)         |Set ACA Attack type to HP damage
00186de4: 00001010 mfhi r2                  |r2 = Attacker's max HP * 0,8
00186de8: 00021082 srl r2,r2,0x02           |r2 = Max HP * 0,2
00186dec: a4620004 sh r2,0x0004(r3)         |Store Attacker Max HP * 0,2 as ACA HP damage
00186df0: 3c038019 lui r3,0x8019            |
00186df4: 8c632d8c lw r3,0x2d8c(r3)         |r3 = ACA data pointer
00186df8: 34020001 ori r2,r0,0x0001         |r2 = 0x01
00186dfc: a0620000 sb r2,0x0000(r3)         |Set ACA hit flag to HIT
00186e00: 3c028019 lui r2,0x8019            |
00186e04: 8c422d8c lw r2,0x2d8c(r2)         |r3 = ACA data pointer
00186e08: 3c048019 lui r4,0x8019            |
00186e0c: 8c842d90 lw r4,0x2d90(r4)         |r4 = Target Current Action (TCA) data pointer
00186e10: 84420004 lh r2,0x0004(r2)         |r2 = ACA HP damage (MaxHP*0,2)
00186e14: 34030040 ori r3,r0,0x0040         |r3 = 0x40
00186e18: a0830025 sb r3,0x0025(r4)         |Set TCA Attack type to HP recoveery
00186e1c: 00021040 sll r2,r2,0x01           |r2 = Attacker's MaxHP*0,4
00186e20: 03e00008 jr r31                   |
00186e24: a4820006 sh r2,0x0006(r4)         |Store Attacker's MaxHP*0,4 as TCA HP recovery

Return location

Battle.bin
0018a9f8: 5B_Dragon:_Heal_(Y)%_100%_Add_Status
0018b97c: Pre Formula Setup