shithub: zelda3

Download patch

ref: 72b193d52b4b7ff4af182cb8f004f6308c03c2a8
parent: aefcb0828b2f9faf27f53f3a75545e0efa66d82f
author: FitzRoyX <57089001+FitzRoyX@users.noreply.github.com>
date: Sun Mar 5 13:10:19 EST 2023

fix fairy dupe glitch (#126) (#177)


--- a/sprite_main.c
+++ b/sprite_main.c
@@ -11820,6 +11820,10 @@
         return;
       }
     }
+    // Avoid calling Sprite_HandleAbsorptionByPlayer twice, it's called
+    // also from within Sprite_HandleDraggingByAncilla
+    if (sprite_state[k] == 0 && (enhanced_features0 & kFeatures0_MiscBugFixes))
+      return;
     if (Sprite_HandleDraggingByAncilla(k))
       return;
     Faerie_HandleMovement(k);