Nenhuma descrição

close_combat.c 807B

1234567891011121314151617181920212223242526272829
  1. #include <battle_locations.h>
  2. #include <battle_structs.h>
  3. #include <types.h>
  4. extern void* bs_cc_lower_def;
  5. extern void* bs_cc_lower_sdef;
  6. extern void* bs_cc_lower_both;
  7. u8 close_combat_choose_script() {
  8. if (battle_participants[battle_attacker_bank].def_buff == 0) {
  9. if (battle_participants[battle_attacker_bank].sp_def_buff == 0)
  10. {
  11. battlescript_cursor = (void*) (0x081D694E);
  12. return true;
  13. }
  14. else
  15. {
  16. battlescript_cursor = bs_cc_lower_sdef;
  17. return true;
  18. }
  19. } else if (battle_participants[battle_attacker_bank].sp_def_buff == 0) {
  20. battlescript_cursor = bs_cc_lower_def;
  21. return true;
  22. } else {
  23. battlescript_cursor = bs_cc_lower_both;
  24. return true;
  25. }
  26. return false;
  27. }