forked from WoWAnalyzer/WoWAnalyzer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move event ordering back to Deva needed for aplcheck, for analyzers c…
…astlinks should be enough
- Loading branch information
Showing
4 changed files
with
49 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
47 changes: 47 additions & 0 deletions
47
src/analysis/retail/evoker/devastation/modules/normalizers/EssenceBurstNormalizer.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
import SPELLS from 'common/SPELLS/evoker'; | ||
import EventOrderNormalizer, { EventOrder } from 'parser/core/EventOrderNormalizer'; | ||
import { EventType } from 'parser/core/Events'; | ||
import { Options } from 'parser/core/Module'; | ||
import { EB_GENERATION_EVENT_TYPES } from '../../../shared/modules/normalizers/EssenceBurstCastLinkNormalizer'; | ||
|
||
const EVENT_ORDERS: EventOrder[] = [ | ||
{ | ||
beforeEventId: SPELLS.SHATTERING_STAR.id, | ||
beforeEventType: EventType.Cast, | ||
afterEventId: SPELLS.ESSENCE_BURST_DEV_BUFF.id, | ||
afterEventType: EB_GENERATION_EVENT_TYPES, | ||
bufferMs: 50, | ||
anyTarget: true, | ||
updateTimestamp: true, | ||
}, | ||
]; | ||
|
||
/** | ||
* The applybuff from Arcane Vigor is logged before the cast of Shattering Star | ||
* This also happens to Living Flames cast with Burnout | ||
* This normalizes events so that the Shattering Star cast always comes before the EB buff | ||
* | ||
* EventOrderNormalizer only normalizes 1 instance per entry in the EventOrder array | ||
* which means that abilities that can generate multiple EB at once, eg. Living Flame cast with | ||
* Leaping Flames, will only have one event normalized, which can be non ideal. Therefore we will build | ||
* an array with all the different types to make sure we get them all normalized. | ||
**/ | ||
class EssenceBurstNormalizer extends EventOrderNormalizer { | ||
constructor(options: Options) { | ||
super(options, EVENT_ORDERS); | ||
|
||
EB_GENERATION_EVENT_TYPES.forEach((ebApplyEventType) => { | ||
EVENT_ORDERS.push({ | ||
beforeEventId: SPELLS.LIVING_FLAME_CAST.id, | ||
beforeEventType: EventType.Cast, | ||
afterEventId: SPELLS.ESSENCE_BURST_DEV_BUFF.id, | ||
afterEventType: ebApplyEventType, | ||
bufferMs: 50, | ||
anyTarget: true, | ||
updateTimestamp: true, | ||
}); | ||
}); | ||
} | ||
} | ||
|
||
export default EssenceBurstNormalizer; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
75 changes: 0 additions & 75 deletions
75
src/analysis/retail/evoker/shared/modules/normalizers/EssenceBurstEventOrderNormalizer.ts
This file was deleted.
Oops, something went wrong.