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

Multischool fix/refactor #449

Merged
merged 10 commits into from
Mar 27, 2024
Merged

Conversation

FelixPflaum
Copy link
Contributor

  • Fix multi school resistance for physical+x DoTs. If resistance is the "best" choice then they go against resistance even if they are explicitly a bleed.
  • Actually implement school crit chance taken (Winter's Chill). It's now added flat crit chance.
  • Refactor multi school code similar to Multi-School Refactoring #402

Unlike the mentioned PR this only does away with the pseudo school indices and special resistance handling. There's only one index for multi schools now, because that and generated base indices are enough to handle multi schools wherever needed.

The helper for setting a spell's school is removed, because every instance of changing the school during the sim is a (lazy) hack. Changed comments to make that clear. Also made the comment on MultiSchoolShouldUseArmor more specific to clarify why it's there and what exactly the known limitations are.

SpellSchool SpellSchool // Schoolmask of all schools this spell uses. Use Spell.SetSchool() to change this!
SpellSchool SpellSchool // Schoolmask of all schools this spell uses. Do not change this! Whatever you try to do is a hack and probably wrong.
SchoolIndex stats.SchoolIndex // Do not change this! Whatever you try to do is a hack and probably wrong.
SchoolBaseIndices []stats.SchoolIndex // Base school indices for multi schools. Do not change this! Whatever you try to do is a hack and probably wrong.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nice comment 😂

@rosenrusinov rosenrusinov merged commit 13e8db6 into wowsims:master Mar 27, 2024
1 check passed
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