shithub: zelda3

Download patch

ref: 958ccf94585a38e48ad0d045f098387e7cc0b710
parent: 25e745fcff32a7f263dcf2e6e57d16779c2ae7ae
author: FitzRoyX <[email protected]>
date: Sun Mar 5 13:39:43 EST 2023

fix dungeon permabunny death and continue bug (#126) (#185)


--- a/player.c
+++ b/player.c
@@ -6274,6 +6274,13 @@
 
     // If you quit in the middle of red armos knight stomp the lumberjack tree will fall on its own
     bg1_y_offset = bg1_x_offset = 0;
+      //bugfix: if you die in a dungeon as a permabunny and continue, you revert back to link
+      if (!link_item_moon_pearl && savegame_is_darkworld) {
+        link_player_handler_state = kPlayerState_PermaBunny;
+        link_is_bunny = 1;
+        link_is_bunny_mirror = 1;
+        LoadGearPalettes_bunny();
+      }
   }
 }