Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .thumb @the hooks decide whether or not to use the enemy's party table or
- .align 2 @the player's, that's why they're not here.
- start:
- push {r0-r3, lr}
- add r0, r0, #0x20
- loop:
- ldrh r1, [r0]
- cmp r1, #0xF1 @compares the species to pirouette forme
- beq push_hp @if the pokemon is pirouette forme, reverts the pokemon
- add r0, r0, #0x64 @goes to the next slot
- add r2, r2, #0x1 @sets counter to one more
- cmp r2, #0x5 @checks if whole party has been scanned
- bne loop @if it hasn't happened 6 times it'll loop again
- skip:
- pop {r0-r3, pc} @ends if nothing in the party is pirouette forme
- push_hp:
- add r0, r0, #0x36
- ldrh r3, [r0]
- mov r4, r0
- push {r3}
- push {r4}
- revert:
- mov r1, #0x84
- strh r1, [r0] @makes species aria forme
- sub r0, r0, #0x56 @makes r0 the beginning of the party
- mov r1, r0 @r0 and r1 should be the same
- ldr r2, calc_stats
- bl jump
- fix_hp:
- pop {r4}
- pop {r3} @r3 is the current hp, r4 is the offset of that
- strh r3, [r4]
- continue:
- pop {r0-r3, pc} @ends
- jump:
- mov pc, r2 @executes calc_stats
- .align 2
- calc_stats: .word 0x0803E47C
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement