diff options
author | mid-kid <esteve.varela@gmail.com> | 2018-11-21 14:14:34 +0100 |
---|---|---|
committer | mid-kid <esteve.varela@gmail.com> | 2018-11-21 14:14:34 +0100 |
commit | c210f052a8097b1cef277d7cd008408ff6c21323 (patch) | |
tree | f71e27ac60b830b7f39e280175d7e5eb408b7694 | |
parent | 725cee7371f1b1862225e940e5c7271dc9444a1c (diff) |
Move BattleSideCopy to transform.asm
-rw-r--r-- | engine/battle/effect_commands.asm | 15 | ||||
-rw-r--r-- | engine/battle/move_effects/transform.asm | 16 |
2 files changed, 15 insertions, 16 deletions
diff --git a/engine/battle/effect_commands.asm b/engine/battle/effect_commands.asm index 2dafc04ba..f257b025c 100644 --- a/engine/battle/effect_commands.asm +++ b/engine/battle/effect_commands.asm @@ -6220,21 +6220,6 @@ BattleCommand_Heal: INCLUDE "engine/battle/move_effects/transform.asm" -BattleSideCopy: -; Copy bc bytes from hl to de if it's the player's turn. -; Copy bc bytes from de to hl if it's the enemy's turn. - ldh a, [hBattleTurn] - and a - jr z, .copy - -; Swap hl and de - push hl - ld h, d - ld l, e - pop de -.copy - jp CopyBytes - BattleEffect_ButItFailed: call AnimateFailedMove jp PrintButItFailed diff --git a/engine/battle/move_effects/transform.asm b/engine/battle/move_effects/transform.asm index ab94da79c..509a8d03f 100644 --- a/engine/battle/move_effects/transform.asm +++ b/engine/battle/move_effects/transform.asm @@ -1,4 +1,3 @@ - BattleCommand_Transform: ; transform @@ -137,3 +136,18 @@ BattleCommand_Transform: call nz, LoadAnim ld hl, TransformedText jp StdBattleTextBox + +BattleSideCopy: +; Copy bc bytes from hl to de if it's the player's turn. +; Copy bc bytes from de to hl if it's the enemy's turn. + ldh a, [hBattleTurn] + and a + jr z, .copy + +; Swap hl and de + push hl + ld h, d + ld l, e + pop de +.copy + jp CopyBytes |