-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] Moved code preventing MBH's transfer to post modifier generation #4858
base: beta
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Except that 1 comment lgtm
This comment was marked as resolved.
This comment was marked as resolved.
@PigeonBar I think I decided just to stop a potential transfer of MBH at the heart of the code - tryTransferModifier(). Not sure if it leads to other problems though. |
This comment was marked as resolved.
This comment was marked as resolved.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I haven't tested more as I already found issues with the things I tested :(
- Magician allows to steal MBH
- Knock Off allows to knock it off (that can't be intended right?)
Thief seems to crash the game when the steal chance procs
nevermind it seems to happen only if we override the opponent held items... These overrides are bad
console
![image](https://github.com/user-attachments/assets/34a793bd-89f7-447c-966f-c766006973e3)At this point I'm really starting to think adding a stealable
attribute for modifiers that is distinct from the transferrable
one may be the way to go, rather than adding MBH-specific checks scattered in various places in the code :(
@MokaStitcher Since there's not much time left, I decided to the code that worked before the October update instead. It's clunky and not elegant but I believe it will do the job. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be good enough for now
I've been saying that for a long time. :) |
What are the changes the user will see?
MBH will no longer be able to be stolen from the opponent.
Why am I making these changes?
Bug report https://discord.com/channels/1125469663833370665/1300228174151680040
What are the changes from a developer perspective?
Code moved down to correct location.
How to test the changes?
Try to steal MBH when generated.
Checklist
beta
as my base branchnpm run test
)