Skip to content

Fix reproduceskill and cloneskill being used in checks when being zero#3322

Merged
MishimaHaruna merged 1 commit intoHerculesWS:masterfrom
skyleo:fix-temporary-skills-not-clearing
Sep 29, 2024
Merged

Fix reproduceskill and cloneskill being used in checks when being zero#3322
MishimaHaruna merged 1 commit intoHerculesWS:masterfrom
skyleo:fix-temporary-skills-not-clearing

Conversation

@skyleo
Copy link
Copy Markdown
Contributor

@skyleo skyleo commented Sep 16, 2024

Pull Request Prelude

Changes Proposed

Fix reproduceskill and cloneskill being used in checks when being zero

This resulted in for example skills gained temporarily by equipping which used SKILL_FLAG_REPLACED_LV_* to be not cleared when taking the equip off.

This bug was introduced in #3298

NOTE: It's debatable if the loop that recreates skill levels of SKILL_FLAG_REPLACED_LV_* and SKILL_FLAG_TEMPORARY skills should be part of pc->calc_skilltree_clear(..) as well. But that's refactoring and not in the scope of this PR.

Issues addressed: None

This resulted in for example skills gained temporarily by equipping which used SKILL_FLAG_REPLACED_LV_* to be not cleared when taking the equip off.
@MishimaHaruna MishimaHaruna added this to the Release v2024.09 milestone Sep 28, 2024
@MishimaHaruna MishimaHaruna merged commit aec44c1 into HerculesWS:master Sep 29, 2024
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