暫無描述

battle_abilities.c 538B

12345678910111213141516171819202122
  1. #include <battle_abilities.h>
  2. #include <custom_structs.h>
  3. #include "battle_structs.h"
  4. u8 has_ability_effect(u8 bank, u8 mold_breaker, u8 gastro)
  5. {
  6. if(gastro && custom_battle_elements.ptr->bank_affecting[bank].gastro_acided)
  7. return false;
  8. return true;
  9. //TODO: MOLD BREAKER
  10. }
  11. u8 weather_abilities_effect()
  12. {
  13. //TODO: AIR LOCK AND CLOUD NINE
  14. return true;
  15. }
  16. u8 has_ability(u8 bank, u8 ability)
  17. {
  18. return (has_ability_effect(bank,0,1) && battle_participants[bank].ability_id == ability);
  19. }