In Hijack_PersonalityTableBuild.s, there's some code attemps to determine if a party is empty in order to determine which party index corresponds with the current loop variable. I realized that even in a double battle where you have no partner, party 2, which would normally be the index of your partner if one was there, will still redirect to party 0, which is the player. So, it seems like I can just simply use the loop variable for the code below and not worry about resolving which party I'm in.
I didn't remove the code before pushing because the hue shifting was working and I was afraid to touch it. Need to go back and check if this is alright - it should be, because that part of the code doesn't actually work because the party index redirection will make it report that party 2 has Pokemon in it.
In Hijack_PersonalityTableBuild.s, there's some code attemps to determine if a party is empty in order to determine which party index corresponds with the current loop variable. I realized that even in a double battle where you have no partner, party 2, which would normally be the index of your partner if one was there, will still redirect to party 0, which is the player. So, it seems like I can just simply use the loop variable for the code below and not worry about resolving which party I'm in.
I didn't remove the code before pushing because the hue shifting was working and I was afraid to touch it. Need to go back and check if this is alright - it should be, because that part of the code doesn't actually work because the party index redirection will make it report that party 2 has Pokemon in it.