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

Bugfix: Corruption item power #6665

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kphoenix137
Copy link
Collaborator

@kphoenix137 kphoenix137 commented Sep 28, 2023

Corruption behaves very strangely, and can result in the player still having mana values greater than 0, and the player is still able to cast spells. This PR fixes that by visually setting mana and max mana to 0 without modifying the actual values. In addition, spells will fail to cast if this item power is active (Fails mana check), and Mana Shields will be forcefully removed. As a failsafe, there is a check to make sure there is no Mana Shield damage reduction if this item power is active.

On a side note, this item power appears to have very inconsistent behavior when it comes to restoration of mana. There are sources that normally restore mana that will no longer (Reading books, leveling up, using potions), and sources that still restore mana (Cryptic shrine, and some other shrines). I've decided to leave these alone in this PR, since I wasn't sure if unifying the behavior was in the scope of this, and whether or not the solution would be to prevent restoration of mana from ANY source, or to allow it from EVERY source, while visually the player sees 0/0 mana

@kphoenix137
Copy link
Collaborator Author

Test failing appears to be related to Discord

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.

None yet

1 participant