ship/storm ci review followups - #7044
Conversation
|
Warning Review limit reached
Next review available in: 29 minutes You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThe PR adds a reusable storm-copy badge to hand views and updates engine trigger doubling to use captured source context and LKI snapshots. Integration tests cover Veyran’s handling of controlled cast triggers and creature spell self-triggers. ChangesStorm-copy badge UI
Storm trigger source scope
Estimated code review effort: 3 (Moderate) | ~25 minutes Sequence Diagram(s)sequenceDiagram
participant Veyran
participant TriggerDoubling
participant CapturedSource
participant LkiSnapshot
Veyran->>TriggerDoubling: evaluate trigger source
TriggerDoubling->>CapturedSource: check zone and incarnation
CapturedSource->>LkiSnapshot: use LKI when source left battlefield
LkiSnapshot-->>TriggerDoubling: return source filter match
TriggerDoubling-->>Veyran: apply doubling decision
Possibly related PRs
Suggested labels: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@crates/engine/src/game/triggers.rs`:
- Around line 7805-7843: Update trigger_source_matches_doubler_filter so a
missing trigger.ability.trigger_source falls back to matches_target_filter
against the live trigger.source_id when the source is still available, instead
of immediately returning false; preserve the existing captured-context and LKI
handling when source context exists.
In `@crates/engine/tests/integration/veyran_storm_source_scope.rs`:
- Around line 65-93: Add an integration test alongside
veyran_does_not_double_cast_trigger_of_permanent_spell that removes Veyran
before the cast-trigger doubling step, using cast(...).commit() to exercise the
LKI path. Assert the trigger source is evaluated from its last-known battlefield
state and the controlled permanent’s cast trigger is doubled, while preserving
the existing non-doubling coverage.
🪄 Autofix
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro Plus
Run ID: 4d0a553b-ca05-476f-8349-7358b21b0b79
📒 Files selected for processing (9)
client/src/components/hand/MobileHandDrawer.tsxclient/src/components/hand/MobileHeldHandCard.tsxclient/src/components/hand/PlayerHand.tsxclient/src/components/hand/StormCopyBadge.tsxcrates/engine/src/game/triggers.rscrates/engine/src/parser/oracle_static/tests.rscrates/engine/tests/integration/granted_storm_snapshot.rscrates/engine/tests/integration/veyran_storm_source_scope.rscrates/phase-ai/baselines/perf-baseline.json
|
Generated for head Parse changes introduced by this PR✓ No card-parse changes detected. |
Summary by CodeRabbit
New Features
Bug Fixes