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

vigo/autoAttacks #3601

Merged
merged 4 commits into from
Sep 5, 2023
Merged

vigo/autoAttacks #3601

merged 4 commits into from
Sep 5, 2023

Conversation

vigo2
Copy link
Contributor

@vigo2 vigo2 commented Sep 3, 2023

[core] AutoAttack changes:

  • ReplaceMHSwing must not return nil, but the default swing instead
  • removed OH syncing support, it's handled via ReplaceMHSwing now (shaman only)
  • removed PreviousSwingAt tracking, it's handled via OnAutoAttack() now (shaman only)
  • curMeleeSpeed (formerly curSwingSpeed) is now used to cache swing durations (curXXSwingDuration), so TrySwingXX() can re-use 'em
  • additionally caching curRangedSpeed and curRangedSwingDuration now, too
  • replaced IsEnabled() by querying AutoSwingMelee or AutoSwingRanged
  • split many functions into melee or ranged parts, and resetAutoSwing() into rescheduleMelee() and rescheduleRanged()

[dk, hunter, druid, warrior] updated ReplaceMHSwing use cases accordingly

[shaman] moved OH syncing support and PreviousSwingAt tracking here; syncing can no longer /lower/ the offhand swing time

[hunter] updated dynamic ranged attack speed changes to use MultiplyRangedSpeed(), and have Frenzy properly use MultiplyMeleeSpeed()

[web] updated testing equip from TBC to WotLK, so it no longer crashes unnoticed because of missing items

- ReplaceMHSwing must not return nil, but the default swing instead
- removed OH syncing support, it's handled via ReplaceMHSwing now (shaman only)
- removed PreviousSwingAt tracking, it's handled via OnAutoAttack() now (shaman only)
- curMeleeSpeed (formerly curSwingSpeed) is now used to cache swing durations (curXXSwingDuration), so TrySwingXX() can re-use 'em
- additionally caching curRangedSpeed and curRangedSwingDuration now
- replaced IsEnabled() by querying AutoSwingMelee or AutoSwingRanged
- split many functions into melee or ranged parts, and resetAutoSwing() into rescheduleMelee() and rescheduleRanged()

[dk, hunter, druid, warrior] updated ReplaceMHSwing use cases accordingly

[shaman] moved OH syncing support and PreviousSwingAt tracking here; syncing can no longer /lower/ the offhand swing time

[hunter] updated dynamic ranged attack speed changes to use MultiplyRangedSpeed(), and have Frenzy properly use MultiplyMeleeSpeed()

[web] updated testing equip from TBC to WotLK, so it no longer crashes unnoticed because of missing items
# Conflicts:
#	sim/shaman/enhancement/TestEnhancement.results
# Conflicts:
#	sim/shaman/enhancement/TestEnhancement.results
# Conflicts:
#	sim/shaman/enhancement/TestEnhancement.results
@vigo2 vigo2 merged commit 6145dd7 into wowsims:master Sep 5, 2023
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.

2 participants