[Rogue] adjust fatebound delayed coinflip resolution timing#11430
Open
seanpeters86 wants to merge 3 commits intomidnightfrom
Open
[Rogue] adjust fatebound delayed coinflip resolution timing#11430seanpeters86 wants to merge 3 commits intomidnightfrom
seanpeters86 wants to merge 3 commits intomidnightfrom
Conversation
There was a problem hiding this comment.
Pull request overview
This PR adjusts Fatebound (Rogue) delayed Hand of Fate coinflip behavior so coin result selection and associated side effects are evaluated at delayed event execution time (instead of at queue time), preventing stale streak context during multi-flip chains.
Changes:
- Defers Hand of Fate coin result selection until the delayed event executes, so streak/bias is based on current buff state.
- Extracts coinflip resolution side effects into a shared
resolve_fatebound_coinflip()path and adds a target-based delayed trigger overload. - Updates delayed multi-flip chaining (e.g., Controlled Chaos follow-up flips) to schedule off the execution-time context.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This fixes Fatebound coinflip timing for delayed flips.
Previously, delayed Hand of Fate flips could resolve using stale pre-queue state, which caused multi-flip chains like Overflowing Purse to evaluate from the wrong streak context. Coinflip side effects like Rush to the Inevitable energy gain and Lucky Coin progress could also be applied when the flip was scheduled rather than when it actually resolved.
Changes
Behavior impact
Validation
engine/class_modules/sc_rogue.cppfor diagnostics: no errorsExternal log validation
Cross-referenced against a live Fatebound Rogue log (Imperator Averzian Mythic):
Delayed chain timing — Rush to the Inevitable energy events show repeated pairs separated by ~250–300ms, consistent with separate delayed event resolutions rather than a single precomputed burst:
00:45.632and00:45.92901:05.601and01:05.93403:07.859and03:08.112Buff state changes between paired events — Fatebound Coin (Heads) aura log and Fatebound Coin (Tails) aura log show streak state actively changing within those delayed windows:
00:45: Heads removed00:45.632→ Tails applied00:45.659, Tails stack[2]00:45.95501:05: Heads removed01:05.601→ Tails applied01:05.636, stacking to [3] by01:06.31403:07: Heads removed03:07.859→ Tails applied03:07.887, Tails stack[2]03:08.136This confirms that the inputs to the equal-stacks check (L8037) and current-side derivation (L8066) differ meaningfully between chained delayed resolutions in real gameplay, validating that evaluating these at execution time rather than queue time produces correct results.