diff options
author | Rangi <35663410+Rangi42@users.noreply.github.com> | 2018-12-09 17:44:09 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-09 17:44:09 -0500 |
commit | e025ab9db0b85cadb42e9b72ac408a58f8133672 (patch) | |
tree | ff74fb06f4d6715bec8a711e31f41057d4625bb3 /engine/battle/move_effects | |
parent | cbf4c663611d4b7d07f3fc8d43f0be756ccc19ed (diff) | |
parent | fd1fa78ffe78c9101c0ae5a1ca299d4282462ecd (diff) |
Merge pull request #578 from mid-kid/master
Fixes in the animation subsystem.
Diffstat (limited to 'engine/battle/move_effects')
-rw-r--r-- | engine/battle/move_effects/transform.asm | 16 |
1 files changed, 15 insertions, 1 deletions
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 |