You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-09-08 08:13:02 -07:00
Move BattleSideCopy to transform.asm
This commit is contained in:
@@ -6220,21 +6220,6 @@ BattleCommand_Heal:
|
|||||||
|
|
||||||
INCLUDE "engine/battle/move_effects/transform.asm"
|
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:
|
BattleEffect_ButItFailed:
|
||||||
call AnimateFailedMove
|
call AnimateFailedMove
|
||||||
jp PrintButItFailed
|
jp PrintButItFailed
|
||||||
|
@@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
BattleCommand_Transform:
|
BattleCommand_Transform:
|
||||||
; transform
|
; transform
|
||||||
|
|
||||||
@@ -137,3 +136,18 @@ BattleCommand_Transform:
|
|||||||
call nz, LoadAnim
|
call nz, LoadAnim
|
||||||
ld hl, TransformedText
|
ld hl, TransformedText
|
||||||
jp StdBattleTextBox
|
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
|
||||||
|
Reference in New Issue
Block a user