mirror of https://github.com/pret/pokecrystal.git
Identify BATTLEACTION_D and _E (thanks, ax6)
This commit is contained in:
parent
12666e3c70
commit
3b20a18200
|
@ -240,8 +240,8 @@ SUBSTATUS_CURLED EQU 0
|
|||
const BATTLEACTION_A
|
||||
const BATTLEACTION_B
|
||||
const BATTLEACTION_C
|
||||
const BATTLEACTION_D
|
||||
const BATTLEACTION_E
|
||||
const BATTLEACTION_SKIPTURN
|
||||
const BATTLEACTION_STRUGGLE
|
||||
const BATTLEACTION_FORFEIT
|
||||
|
||||
; wBattlePlayerAction
|
||||
|
|
|
@ -440,9 +440,9 @@ DetermineMoveOrder:
|
|||
and a
|
||||
jr z, .use_move
|
||||
ld a, [wBattleAction]
|
||||
cp BATTLEACTION_E
|
||||
cp BATTLEACTION_STRUGGLE
|
||||
jr z, .use_move
|
||||
cp BATTLEACTION_D
|
||||
cp BATTLEACTION_SKIPTURN
|
||||
jr z, .use_move
|
||||
sub BATTLEACTION_SWITCH1
|
||||
jr c, .use_move
|
||||
|
@ -5191,9 +5191,9 @@ PlayerSwitch:
|
|||
|
||||
.linked
|
||||
ld a, [wBattleAction]
|
||||
cp BATTLEACTION_E
|
||||
cp BATTLEACTION_STRUGGLE
|
||||
jp z, .switch
|
||||
cp BATTLEACTION_D
|
||||
cp BATTLEACTION_SKIPTURN
|
||||
jp z, .switch
|
||||
cp BATTLEACTION_SWITCH1
|
||||
jp c, .switch
|
||||
|
@ -5774,10 +5774,10 @@ ParseEnemyAction:
|
|||
call z, LinkBattleSendReceiveAction
|
||||
call Call_LoadTempTileMapToTileMap
|
||||
ld a, [wBattleAction]
|
||||
cp BATTLEACTION_E
|
||||
cp BATTLEACTION_STRUGGLE
|
||||
jp z, .struggle
|
||||
cp BATTLEACTION_D
|
||||
jp z, .battle_action_d
|
||||
cp BATTLEACTION_SKIPTURN
|
||||
jp z, .skip_turn
|
||||
cp BATTLEACTION_SWITCH1
|
||||
jp nc, ResetVarsForSubstatusRage
|
||||
ld [wCurEnemyMoveNum], a
|
||||
|
@ -5811,7 +5811,7 @@ ParseEnemyAction:
|
|||
jp nz, ResetVarsForSubstatusRage
|
||||
jr .continue
|
||||
|
||||
.battle_action_d
|
||||
.skip_turn
|
||||
ld a, $ff
|
||||
jr .finish
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@ DoEnemyTurn:
|
|||
jr z, DoTurn
|
||||
|
||||
ld a, [wBattleAction]
|
||||
cp BATTLEACTION_E
|
||||
cp BATTLEACTION_STRUGGLE
|
||||
jr z, DoTurn
|
||||
cp BATTLEACTION_SWITCH1
|
||||
ret nc
|
||||
|
|
|
@ -1552,10 +1552,10 @@ _LinkBattleSendReceiveAction:
|
|||
and a ; BATTLEPLAYERACTION_USEMOVE?
|
||||
jr nz, .switch
|
||||
ld a, [wCurPlayerMove]
|
||||
ld b, BATTLEACTION_E
|
||||
ld b, BATTLEACTION_STRUGGLE
|
||||
cp STRUGGLE
|
||||
jr z, .struggle
|
||||
ld b, BATTLEACTION_D
|
||||
ld b, BATTLEACTION_SKIPTURN
|
||||
cp $ff
|
||||
jr z, .struggle
|
||||
ld a, [wCurMoveNum]
|
||||
|
|
Loading…
Reference in New Issue