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 AutoSpell not replacing selected skill in some cases #3282

Merged
merged 1 commit into from
Feb 29, 2024

Conversation

guilherme-gm
Copy link
Member

Pull Request Prelude

Changes Proposed

SC_AUTOSPELL val1 should be the AutoSpell skill level, not the selected skill learned level. This was broken during the refactor (#3237) and is now fixed.

Thanks to @violent01 for spotting the issue in the rebalance PR ( #3230 (comment) )

Since it was now using the learned level of the selected skill, this lead to cases where switching the selected skill wouldn't work. For example, if you had Fire Bolt Lv10 and Earth Spikes Lv5 (their max), Lv5 would always be less than Lv10, and would be blocked by the default block of every SC (in status.c, which prevents a lower val1 from overriding a higher val1).

Issues addressed:
None

SC_AUTOSPELL val1 should be the AutoSpell skill level, not
the selected skill learned level.

This was broken during the refactor and is now fixed.

Giving it the selected skill level would prevent restarting the buff
mid way if the previous buff had a higher level for the target skill.

e.g. a Lv10 Fire Bolt would not be replaced by a Lv5 Earth Spikes
@MishimaHaruna MishimaHaruna merged commit d51b685 into HerculesWS:master Feb 29, 2024
192 of 256 checks passed
@guilherme-gm guilherme-gm deleted the fix-autospell branch March 30, 2024 18:25
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.

3 participants