Ei kuvausta

metal_burst_script.s 1.5KB

12345678910111213141516171819202122232425262728293031323334353637
  1. #include <battle_script.h>
  2. #include <constants/moves.h>
  3. .align 2
  4. .thumb
  5. .text
  6. .global bs_metal_burst_counter
  7. bs_metal_burst_counter:
  8. jumpifhalfword 0x0 0x02023D4A MOVE_COUNTER 0x081D7433
  9. attackcanceler
  10. counterdamagecalculator try_mirror_coat
  11. accuracycheck 0x81D695E 0x0
  12. attackstring
  13. ppreduce
  14. damagecalc2
  15. cmd69
  16. callasm metal_burst_dmg_reduction+1
  17. goto 0x81D6934
  18. try_mirror_coat:
  19. mirrorcoatdamagecalculator 0x081D7DF0
  20. accuracycheck 0x81D695E 0x0
  21. attackstring
  22. ppreduce
  23. damagecalc2
  24. cmd69
  25. callasm metal_burst_dmg_reduction+1
  26. goto 0x81D6934
  27. .align 2
  28. .global as_metal_burst
  29. as_metal_burst:
  30. .byte 0x00, 0x14, 0x28, 0x0A, 0x03, 0x2A, 0x01, 0x03, 0x1D, 0x8B, 0x09, 0x08, 0x02, 0x05, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x08, 0x00, 0x01, 0x00, 0x0E, 0x16, 0x36, 0x1D, 0x08, 0x0E, 0x16, 0x36, 0x1D, 0x08, 0x0E, 0x16, 0x36, 0x1D, 0x08, 0x0E, 0x16, 0x36, 0x1D, 0x08
  31. .byte 0x05, 0x0B, 0x03, 0x04, 0x00, 0x05, 0x00, 0xD6, 0x27, 0x19, 0xAA, 0x00, 0x3F, 0x04, 0x03, 0x02, 0x94, 0x3F, 0x3E, 0x08, 0x84, 0x04, 0xF0, 0xFF, 0xF1, 0xFF, 0x01, 0x00, 0x00, 0x00, 0x19, 0xAA, 0x00, 0x3F, 0x04, 0x03, 0x02, 0x94, 0x3F, 0x3E, 0x08, 0x84, 0x04, 0x10, 0x00, 0xFB
  32. .byte 0xFF, 0x01, 0x00, 0x00, 0x00, 0x19, 0xAA, 0x00, 0x3F, 0x04, 0x03, 0x02, 0x94, 0x3F, 0x3E, 0x08, 0x84, 0x04, 0xF4, 0xFF, 0x12, 0x00, 0x01, 0x00, 0x00, 0x00, 0x19, 0xAA, 0x00, 0x3F, 0x04, 0x03, 0x02, 0x94, 0x3F, 0x3E, 0x08, 0x84, 0x04, 0x00, 0x00, 0x05, 0x00, 0x01, 0x00, 0x00
  33. .byte 0x00, 0x19, 0xAA, 0x00, 0x3F, 0x04, 0x03, 0x05, 0x08