Skip to content

Fix AutoSpell not replacing selected skill in some cases#3282

Merged
MishimaHaruna merged 1 commit intoHerculesWS:masterfrom
guilherme-gm:fix-autospell
Feb 29, 2024
Merged

Fix AutoSpell not replacing selected skill in some cases#3282
MishimaHaruna merged 1 commit intoHerculesWS:masterfrom
guilherme-gm:fix-autospell

Conversation

@guilherme-gm
Copy link
Copy Markdown
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
@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