Ingen beskrivning

roost_scripts.S 565B

1234567891011121314151617181920212223242526272829303132333435363738
  1. #include <battle_script.h>
  2. .text
  3. .align 2
  4. .thumb
  5. .global bs_roost
  6. bs_roost:
  7. attackcanceler
  8. attackstring
  9. ppreduce
  10. setdamageasrestorehalfmaxhp bs_roost_max 1
  11. attackanimation
  12. waitanimation
  13. orword 0x02023DD0 0x100
  14. graphicalhpupdate 1
  15. datahpupdate 1
  16. printstring 0x4B
  17. waitmessage 0x40
  18. jumpifhalfword 0x0 0x02023D4A 0x163 roost_active
  19. goto roost_end
  20. bs_roost_max:
  21. pause 0x20
  22. printstring 0x4C
  23. waitmessage 0x40
  24. goto roost_end
  25. roost_active:
  26. jumpiftype2 1 2 change_type
  27. goto roost_end
  28. change_type:
  29. callasm roost_change_type+1
  30. roost_end:
  31. setbyte 0x0203FD80 0
  32. cmd49 0 0
  33. end