Ingen beskrivning

close_combat.c 776B

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