[WARLOCK] Add random cast delay to Doomguard #914
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
When plotting breakpoints and stat scaling I found out that Doomguard has massive peaks at certain fixed haste breakpoints. After some digging together with Ketesh, TheNameLess and Malvanis in the Warlock Discord we found that it is related to Doomguard gaining a extra cast.
The fixed 400ms cast delay is however not "game like" and should be changed. I've analysed 1700+ Doomguard casts in logs and created the following Histogram highlighting a more accurate interpretation:
![Doomguard cast delay](https://private-user-images.githubusercontent.com/1216787/355177235-43299a98-16ad-48ed-934a-d9235f605a24.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyODE0MDcsIm5iZiI6MTczOTI4MTEwNywicGF0aCI6Ii8xMjE2Nzg3LzM1NTE3NzIzNS00MzI5OWE5OC0xNmFkLTQ4ZWQtOTM0YS1kOTIzNWY2MDVhMjQucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxMSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTFUMTMzODI3WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NDU5Yjg3MDYzZDg4NDdjOWExYWRkMjEyMmExNTUxYjZlMzAzN2M1ODA2ZDc4MjJlODFhZjU2ZGFjYTM4MDFjMSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.drrstXy2QJzZfD28xFAAPa5ni4RSAIaI8sDjVrVLwyA)
We came to the consensus to set the cast delay to a random number between 150 and 750ms.
Results
Stat scaling
Before: https://docs.google.com/spreadsheets/d/e/2PACX-1vSOhHz6EmXS4SOdfz8MCdXkx9jzOP0_7yhGreE_HeUIjSjxdXv3rMXLYacYfwEWudM3cA00O1ndgc4Z/pubchart?oid=1571781985&format=interactive
After: https://docs.google.com/spreadsheets/d/e/2PACX-1vSOhHz6EmXS4SOdfz8MCdXkx9jzOP0_7yhGreE_HeUIjSjxdXv3rMXLYacYfwEWudM3cA00O1ndgc4Z/pubchart?oid=840962925&format=interactive
Breakpoints
Before: https://docs.google.com/spreadsheets/d/e/2PACX-1vSOhHz6EmXS4SOdfz8MCdXkx9jzOP0_7yhGreE_HeUIjSjxdXv3rMXLYacYfwEWudM3cA00O1ndgc4Z/pubchart?oid=303894196&format=interactive
After: https://docs.google.com/spreadsheets/d/e/2PACX-1vSOhHz6EmXS4SOdfz8MCdXkx9jzOP0_7yhGreE_HeUIjSjxdXv3rMXLYacYfwEWudM3cA00O1ndgc4Z/pubchart?oid=1405742270&format=interactive