Skip to content

Fix leak of shuffled fairy bottle-swipe behavior to other actors#6405

Merged
serprex merged 1 commit intoHarbourMasters:develop-ackbarfrom
leggettc18:fix/rando/bottle-swiping
Mar 24, 2026
Merged

Fix leak of shuffled fairy bottle-swipe behavior to other actors#6405
serprex merged 1 commit intoHarbourMasters:develop-ackbarfrom
leggettc18:fix/rando/bottle-swiping

Conversation

@leggettc18
Copy link
Contributor

@leggettc18 leggettc18 commented Mar 24, 2026

The VB_BOTTLE_ACTOR hook in ShuffleFairies.cpp wasn't checking the actor id of the actor it was bottling, and since we store the same type of CheckIdentity object for every actor with a check in the ObjectExtension system, it was just grabbing whatever actor you swiped, grabbing its check identity, and giving you the item.

This surrounds everything in that hook in if(actor->id == ACTOR_EN_ELF). I confirmed you can no longer bottle grass and pots but can still bottle fairies.

Fixes #6404

Build Artifacts

@serprex serprex merged commit 5e13570 into HarbourMasters:develop-ackbar Mar 24, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants