-
Notifications
You must be signed in to change notification settings - Fork 235
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
Fix Chasca bugs in A4 and C2 #2581
Conversation
WalkthroughThe pull request modifies the Changes
Possibly related PRs
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🔇 Additional comments (4)libs/gi/sheets/src/Characters/Chasca/index.tsx (4)
The addition of the
The changes correctly implement a maximum cap of 3 elements while properly accounting for:
This fixes the A4 ability bug by preventing element stacks from exceeding the game's intended limit.
The addition of
Please ensure:
Let's check for any other references to phecElements or similar damage calculations: Also applies to: 216-216 ✅ Verification successfulThe first search will show us how phecElements is used in the damage calculations. The second search will provide context on how similar mechanics are implemented in other characters. The third search will help identify any cross-character dependencies. Changes are safe to implement The verification shows that:
🏁 Scripts executedThe following scripts were executed for the analysis: Script: #!/bin/bash
# Search for similar element counting patterns in other character implementations
rg -l "greaterEq.*tally" "libs/gi/sheets/src/Characters/"
# Search for similar damage calculation patterns
rg -l "percent.*passive2\.dmg" "libs/gi/sheets/src/Characters/"
Length of output: 878 Script: #!/bin/bash
# Let's examine the specific implementation in Chasca's file
rg -A 10 "phecElements" "libs/gi/sheets/src/Characters/Chasca/index.tsx"
# Check how other characters use greaterEq with tally for context
rg -A 5 "greaterEq.*tally" "libs/gi/sheets/src/Characters/Yelan/index.tsx" "libs/gi/sheets/src/Characters/YunJin/index.tsx" "libs/gi/sheets/src/Characters/Nilou/index.tsx"
# Look for any direct references to Chasca's mechanics in other files
rg "Chasca" "libs/gi/sheets/src/"
Length of output: 2734 Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
[frontend] [Tue Dec 17 23:01:52 UTC 2024] - Deployed 1db8cda to https://genshin-optimizer-prs.github.io/pr/2581/frontend (Takes 3-5 minutes after this completes to be available) [Tue Dec 17 23:52:23 UTC 2024] - Deleted deployment |
Describe your changes
Issue or discord link
Testing/validation
Checklist before requesting a review (leave this PR as draft if any part of this list is not done.)
yarn run mini-ci
locally to validate format and lint.Summary by CodeRabbit
New Features
Bug Fixes