Quote:
Originally Posted by Lance32497
Jumpifability
I am trying to make an attack that when the user hits the target, the target's partner's Attack will decrease by one stage.
And.. Is there a way to check whether you are in double battle?
|
Why are you checking ability for that? Looking at the code for jumpifability, I see no reason why it shouldn't be working. Maybe it's an error in your script?
Also you can check for double battle by checking the battle flags bitfield. This is at 02022B4C in FireRed. Bit 0 is the double battle flag, so a double battle check would be something like "jumpifword 4 0x02022B4C 1 JUMPHEREIFDOUBLEBATTLE". Jumpifword mode 4 is bitwise AND so you can check if the first bit is set like that
__________________

A Pokemon that is discriminated!
Support squirtle and make it everyone's favourite.