Fix dying as permabunny palette bug (#184)

* fix dying as permabunny palette bug (#126)

* fix dying as a permabunny palette bug (#126)
This commit is contained in:
FitzRoyX
2023-03-05 18:31:59 -06:00
committed by GitHub
parent 5e63ff7863
commit 6bf39a0617
2 changed files with 6 additions and 0 deletions

View File

@@ -5487,6 +5487,9 @@ void RevivalFairy_MonitorHP() { // 88f430
} else if (link_is_bunny) {
link_player_handler_state = kPlayerState_PermaBunny;
link_is_bunny_mirror = 1;
//bugfix: dying as permabunny doesn't restore link palette during death animation
if (enhanced_features0 & kFeatures0_MiscBugFixes)
LoadGearPalettes_bunny();
} else {
link_player_handler_state = kPlayerState_Ground;
}

View File

@@ -3008,6 +3008,9 @@ void Death_PrepFaint() { // 8ffa6f
if (link_item_moon_pearl)
link_is_bunny = 0;
link_timer_tempbunny = 0;
//bugfix: dying as permabunny doesn't restore link palette during death animation
if (enhanced_features0 & kFeatures0_MiscBugFixes)
LoadActualGearPalettes();
sound_effect_1 = 0x27 | Link_CalculateSfxPan();
for (int i = 0; i != 4; i++) {
if (link_bottle_info[i] == 6)