Skip to content

fix: failed when trying to imbue items#3891

Merged
dudantas merged 1 commit intoopentibiabr:dudantas/protocol-15.11from
andreoam:Fix-falha-nos-imbuementos
Mar 7, 2026
Merged

fix: failed when trying to imbue items#3891
dudantas merged 1 commit intoopentibiabr:dudantas/protocol-15.11from
andreoam:Fix-falha-nos-imbuementos

Conversation

@andreoam
Copy link
Contributor

@andreoam andreoam commented Mar 7, 2026

Description

Delete the random failure branch in Player::onApplyImbuement that used uniform_random to abort the imbuement, send a failure message and reopen the imbuement window. With this change, once prerequisites are met the code proceeds to apply imbuement stats instead of potentially failing at this random check.

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

  • Test A
  • Test B

Test Configuration:

  • Server Version:
  • Client:
  • Operating System:

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I checked the PR checks reports
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works

Delete the random failure branch in Player::onApplyImbuement that used uniform_random to abort the imbuement, send a failure message and reopen the imbuement window. With this change, once prerequisites are met the code proceeds to apply imbuement stats instead of potentially failing at this random check.
@coderabbitai
Copy link

coderabbitai bot commented Mar 7, 2026

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: acb103dc-d7e8-40f7-b0bd-891afd1f4005

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Tip

Try Coding Plans. Let us write the prompt for your AI agent so you can ship faster (with fewer bugs).
Share your feedback on Discord.


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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@sonarqubecloud
Copy link

sonarqubecloud bot commented Mar 7, 2026

@dudantas dudantas merged commit 669b139 into opentibiabr:dudantas/protocol-15.11 Mar 7, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants