mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-01-23 09:16:20 -08:00
Move BattleSideCopy to transform.asm
This commit is contained in:
parent
725cee7371
commit
c210f052a8
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user