Fix mismatch between the card in Game.activeCards and the actual card ingame #410

Open
opened 2025-11-07 16:29:36 +00:00 by LunarTides · 0 comments
LunarTides commented 2025-11-07 16:29:36 +00:00 (Migrated from github.com)

Something strange is going on here. After rewriting the enchantment system in #400 i noticed that querying the host card of an enchantment doesn't show the changes the enchantment causes.

Image showing the bug in action

This is maybe caused by the cards in activeCards not being proper references to the actual card, and that they get desynced because of that?? Idk...

Edit: This is worse than I thought. Running /eval await @abcdefg.destroy() doesn't work, whereas running /eval await b#c#1.destroy() does. It does change the card in activeCards, but not the actual card itself. This means that the theory above is most likely true. This is bad...

Something strange is going on here. After rewriting the enchantment system in #400 i noticed that querying the host card of an enchantment doesn't show the changes the enchantment causes. <img width="1441" height="762" alt="Image showing the bug in action" src="https://github.com/user-attachments/assets/b25cba96-41c7-437f-9500-d88d3a61bb9b" /> This is *maybe* caused by the cards in `activeCards` not being proper references to the actual card, and that they get desynced because of that?? Idk... *Edit*: This is worse than I thought. Running `/eval await @abcdefg.destroy()` doesn't work, whereas running `/eval await b#c#1.destroy()` does. It *does* change the card in `activeCards`, but not the actual card itself. This means that the theory above is most likely true. This is bad...
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
LunarTides/Hearthstone.js#410
No description provided.