Dragon Check

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

Force Attack Miss if Target is not a Dragon nor Tiamat Type
(Done by Checking for Target's Graphic (0x15e))
--------------------------------------------------------------------------------
001875bc: 3c028019 lui r2,0x8019            |
001875c0: 8c422d98 lw r2,0x2d98(r2)         |r2 = Target data pointer
001875c4: 27bdffe8 addiu r29,r29,-0x0018    |
001875c8: afbf0010 sw r31,0x0010(r29)       |
001875cc: 9042015e lbu r2,0x015e(r2)        |r2 = Target's Graphic Monster Type in Patcher's Job sheet
001875d0: 00000000 nop                      |
001875d4: 2442fff1 addiu r2,r2,-0x000f      |r2 = Target Graphic - 0xf 
001875d8: 2c420002 sltiu r2,r2,0x0002       |r2 = 0x01 if Target Graphic is  Dragon or Tiamat
001875dc: 14400003 bne r2,r0,0x001875ec     #If Target is not using Dragon or Tiamat Graphic
001875e0: 00000000 nop                          |
001875e4: 0c0610c3 jal 0x0018430c               |-->Force Attack Miss Hit Flag = Miss Hit% = 0 - Evade type = 0x07
001875e8: 00000000 nop                          |
001875ec: 8fbf0010 lw r31,0x0010(r29)       END
001875f0: 27bd0018 addiu r29,r29,0x0018
001875f4: 03e00008 jr r31
001875f8: 00000000 nop

Return Locations

Battle.bin
0018a980 - 5A Dragon: Hit(100)%
0018a9c4 - 5B Dragon: Heal_(Y)% 100% Add Status
0018aa10 - 5C Dragon: +Brave_(X) +PA/MA/SP(Y)
0018aa54 - 5D Dragon: Set_Quick