Apply from pokecrystal 38667169809b81eb39990b4341f9919332d27248 and 2907d65a478da7774d48333c2a8e4281a169a447

This commit is contained in:
xCrystal 2024-02-11 00:46:37 +01:00
parent 0ba7d2e2c3
commit 4b1eea55af
2 changed files with 13 additions and 13 deletions

View File

@ -6244,7 +6244,7 @@ LoadEnemyMon:
ld hl, wEnemyMonStats ld hl, wEnemyMonStats
ld de, wEnemyStats ld de, wEnemyStats
ld bc, NUM_EXP_STATS * 2 ld bc, NUM_BATTLE_STATS * 2
call CopyBytes call CopyBytes
; BUG: PRZ and BRN stat reductions don't apply to switched Pokémon (see docs/bugs_and_glitches.md) ; BUG: PRZ and BRN stat reductions don't apply to switched Pokémon (see docs/bugs_and_glitches.md)

View File

@ -1968,10 +1968,10 @@ BattleBGEffect_FadeMonsToBlackRepeating:
add hl, de add hl, de
ld a, [hli] ld a, [hli]
push hl push hl
call BGEffects_LoadBGPal1_OBPal0 call BGEffects_LoadEnemyPals
pop hl pop hl
ld a, [hl] ld a, [hl]
call BGEffects_LoadBGPal0_OBPal1 call BGEffects_LoadPlayerPals
ret ret
.player_2 .player_2
@ -1979,17 +1979,17 @@ BattleBGEffect_FadeMonsToBlackRepeating:
add hl, de add hl, de
ld a, [hli] ld a, [hli]
push hl push hl
call BGEffects_LoadBGPal0_OBPal1 call BGEffects_LoadPlayerPals
pop hl pop hl
ld a, [hl] ld a, [hl]
call BGEffects_LoadBGPal1_OBPal0 call BGEffects_LoadEnemyPals
ret ret
.cgb_two .cgb_two
ld a, $e4 ld a, $e4
call BGEffects_LoadBGPal0_OBPal1 call BGEffects_LoadPlayerPals
ld a, $e4 ld a, $e4
call BGEffects_LoadBGPal1_OBPal0 call BGEffects_LoadEnemyPals
call EndBattleBGEffect call EndBattleBGEffect
ret ret
@ -2334,7 +2334,7 @@ BGEffect_RapidCyclePals:
ld [hl], a ld [hl], a
call BattleBGEffect_GetFirstDMGPal call BattleBGEffect_GetFirstDMGPal
jr c, .okay_2_cgb jr c, .okay_2_cgb
call BGEffects_LoadBGPal0_OBPal1 call BGEffects_LoadPlayerPals
ret ret
.okay_2_cgb .okay_2_cgb
@ -2345,7 +2345,7 @@ BGEffect_RapidCyclePals:
.two_cgb .two_cgb
ld a, $e4 ld a, $e4
call BGEffects_LoadBGPal0_OBPal1 call BGEffects_LoadPlayerPals
call EndBattleBGEffect call EndBattleBGEffect
ret ret
@ -2365,7 +2365,7 @@ BGEffect_RapidCyclePals:
ld [hl], a ld [hl], a
call BattleBGEffect_GetFirstDMGPal call BattleBGEffect_GetFirstDMGPal
jr c, .okay_4_cgb jr c, .okay_4_cgb
call BGEffects_LoadBGPal1_OBPal0 call BGEffects_LoadEnemyPals
ret ret
.okay_4_cgb .okay_4_cgb
@ -2376,11 +2376,11 @@ BGEffect_RapidCyclePals:
.four_cgb .four_cgb
ld a, $e4 ld a, $e4
call BGEffects_LoadBGPal1_OBPal0 call BGEffects_LoadEnemyPals
call EndBattleBGEffect call EndBattleBGEffect
ret ret
BGEffects_LoadBGPal0_OBPal1: BGEffects_LoadPlayerPals:
ld h, a ld h, a
ldh a, [rSVBK] ldh a, [rSVBK]
push af push af
@ -2407,7 +2407,7 @@ BGEffects_LoadBGPal0_OBPal1:
ldh [hCGBPalUpdate], a ldh [hCGBPalUpdate], a
ret ret
BGEffects_LoadBGPal1_OBPal0: BGEffects_LoadEnemyPals:
ld h, a ld h, a
ldh a, [rSVBK] ldh a, [rSVBK]
push af push af