Skip to content
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: use mana potions in pz #1354

Merged
merged 2 commits into from
Aug 6, 2023
Merged

fix: use mana potions in pz #1354

merged 2 commits into from
Aug 6, 2023

Conversation

luan
Copy link
Contributor

@luan luan commented Aug 6, 2023

When in #1339 we had to implement PZ checks for chaning, it incidentally prevented players from gaining mana from potions in PZ.

This was due to the mechanic of adding mana using MANA_DRAIN and not setting itself to non-aggressive.

This PR makes changing mana non-aggressive if it is positive, and also adds a bunch of facilities in Combat to pass agression around for when it needs to be overriden.

@sonarqubecloud
Copy link

sonarqubecloud bot commented Aug 6, 2023

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 5 Code Smells

0.0% 0.0% Coverage
6.9% 6.9% Duplication

warning The version of Java (11.0.17) you have used to run this analysis is deprecated and we will stop accepting it soon. Please update to at least Java 17.
Read more here

idea Catch issues before they fail your Quality Gate with our IDE extension sonarlint SonarLint

Copy link
Contributor

@lamonato29 lamonato29 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested with mana potions and health potions. Working.

@dudantas dudantas merged commit e2023cc into opentibiabr:main Aug 6, 2023
@dudantas dudantas mentioned this pull request Aug 7, 2023
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants