ref: 6bf39a0617fe0b6e288ea98b1dd7ef764d95b258
parent: 5e63ff78632d2ba4272dc893ad1c3cc40f8df87f
author: FitzRoyX <[email protected]>
date: Sun Mar 5 13:31:59 EST 2023
Fix dying as permabunny palette bug (#184) * fix dying as permabunny palette bug (#126) * fix dying as a permabunny palette bug (#126)
--- a/ancilla.c
+++ b/ancilla.c
@@ -5487,6 +5487,9 @@
} 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;
}
--- a/messaging.c
+++ b/messaging.c
@@ -3008,6 +3008,9 @@
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)