polishedcrystal icon indicating copy to clipboard operation
polishedcrystal copied to clipboard

Harvest not restoring berry properly after switch

Open itsdarsh opened this issue 4 years ago • 1 comments

Eternity Today at 2:36 AM My Exeggutor harvested a Sitrus Berry at end of turn, I changed Pokemon and then the berry dissappeared once it went back End of combat: the berry is back lol

One Winged Angel With No Brim Today at 2:38 AM So it had a Sitrus Berry, you switched it out, it lost the Sitrus Berry the next time you opened the party menu in-battle?

Eternity Today at 2:39 AM Yeah I just tried in the next battle, it harvested the berry, switched to Politoed (holding Mystic Water), then Politoed healed with the berry lol

Hooray for issue #500 🥳

itsdarsh avatar Apr 26 '20 06:04 itsdarsh

Cannot reproduce this.

FredrIQ avatar May 04 '20 16:05 FredrIQ

Fixed in a semi-recent commit. There was a subtle memory corruption bug in the battle engine due to wCurPartyMon vs wCurBattleMon confusion.

FredrIQ avatar Mar 11 '23 11:03 FredrIQ