shithub: zelda3

Download patch

ref: 5e63ff78632d2ba4272dc893ad1c3cc40f8df87f
parent: 3388cedba97145973d5f74dd713efd0355efe37f
author: FitzRoyX <[email protected]>
date: Sun Mar 5 13:17:53 EST 2023

fix cape doesnt drain while grabbing or pulling (#126) (#182)

replaces the old bugfix with this new one that doesn't take the ability away

--- a/player.c
+++ b/player.c
@@ -2130,10 +2130,6 @@
   default:
     assert(0);
   }
-
-  // Zelda vanilla bug: Disallow dragging while in cape mode, it uses no magic.
-  if (link_cape_mode && enhanced_features0 & kFeatures0_MiscBugFixes)
-    link_grabbing_wall = 0;
 }
 
 void HandleSwordSfxAndBeam() {  // 879c66
@@ -3291,7 +3287,8 @@
 }
 
 void Link_HandleCape_passive_LiftCheck() {  // 87ae88
-  if (link_state_bits & 0x80)
+  //bugfix: grabbing or pulling while wearing cape didn't drain magic
+  if (link_state_bits & 0x80 || (enhanced_features0 & kFeatures0_MiscBugFixes && link_grabbing_wall))
     Player_CheckHandleCapeStuff();
 }