Skip to content

Commit

Permalink
Merge pull request WoWAnalyzer#6636 from trevorm4/eb-spark-fix
Browse files Browse the repository at this point in the history
Fix bug in eb source module for spark
  • Loading branch information
trevorm4 authored Jan 27, 2024
2 parents d5848d1 + e5a4fb8 commit 018a4db
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 6 deletions.
1 change: 1 addition & 0 deletions src/analysis/retail/evoker/preservation/CHANGELOG.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import RESOURCE_TYPES from 'game/RESOURCE_TYPES';
import { ResourceLink, SpellLink } from 'interface';

export default [
change(date(2024, 1, 26), <>Fix bug in <SpellLink spell={TALENTS_EVOKER.ESSENCE_BURST_PRESERVATION_TALENT}/> source breakdown module and adjust mana costs</>, Trevor),
change(date(2024, 1, 20), <>Add module for <SpellLink spell={TALENTS_EVOKER.ESSENCE_BURST_PRESERVATION_TALENT}/> source breakdown</>, Trevor),
change(date(2024, 1, 20), <>Add <SpellLink spell={TALENTS_EVOKER.LIFEBIND_TALENT}/> attribution to <SpellLink spell={TALENTS_EVOKER.GRACE_PERIOD_TALENT}/> module</>, Trevor),
change(date(2024, 1, 16), <>Bump support to 10.2.5</>, Trevor),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { Options } from 'parser/core/Module';
import { TALENTS_EVOKER } from 'common/TALENTS';
import {
AbilityEvent,
AnyEvent,
ApplyBuffEvent,
ApplyBuffStackEvent,
CastEvent,
Expand Down Expand Up @@ -734,7 +735,10 @@ const EVENT_LINKS: EventLink[] = [
forwardBufferMs: 10, // ordering
anyTarget: true,
additionalCondition(linkingEvent, referencedEvent) {
return !HasRelatedEvent(linkingEvent, ESSENCE_RUSH);
return (
!HasRelatedEvent(linkingEvent, ESSENCE_RUSH) &&
!HasRelatedEvent(linkingEvent, SPARK_OF_INSIGHT)
);
},
},
{
Expand All @@ -746,6 +750,13 @@ const EVENT_LINKS: EventLink[] = [
referencedEventType: [EventType.RefreshBuff, EventType.ApplyBuff, EventType.ApplyBuffStack],
forwardBufferMs: CAST_BUFFER_MS,
anyTarget: true,
additionalCondition(linkingEvent, referencedEvent) {
return (
!HasRelatedEvent(linkingEvent, ESSENCE_RUSH) &&
!HasRelatedEvent(linkingEvent, SPARK_OF_INSIGHT) &&
!HasRelatedEvent(linkingEvent, FROM_HARDCAST)
);
},
},
{
linkRelation: STASIS_FOR_RAMP,
Expand Down Expand Up @@ -940,7 +951,14 @@ export function didSparkProcEssenceBurst(
| RefreshBuffEvent
| ApplyBuffStackEvent,
) {
return HasRelatedEvent(event, SPARK_OF_INSIGHT);
let applyEvent: AnyEvent | undefined = event;
if (applyEvent.type === EventType.RemoveBuff || applyEvent.type === EventType.RemoveBuffStack) {
applyEvent = GetRelatedEvent(event, ESSENCE_BURST_LINK);
}
if (applyEvent === undefined) {
return;
}
return HasRelatedEvent(applyEvent, SPARK_OF_INSIGHT);
}

export function didEbConsumeSparkProc(event: RemoveBuffEvent | RemoveBuffStackEvent) {
Expand Down
10 changes: 6 additions & 4 deletions src/common/SPELLS/evoker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,19 +175,19 @@ const spells = {
id: 361500,
name: 'Living Flame',
icon: 'ability_evoker_livingflame',
manaCost: 5000,
manaCost: 5500,
},
LIVING_FLAME_HEAL: {
id: 361509,
name: 'Living Flame',
icon: 'ability_evoker_livingflame',
manaCost: 5000,
manaCost: 5500,
},
LIVING_FLAME_CAST: {
id: 361469,
name: 'Living Flame',
icon: 'ability_evoker_livingflame',
manaCost: 5000,
manaCost: 5500,
},
AZURE_STRIKE: {
id: 362969,
Expand All @@ -199,7 +199,7 @@ const spells = {
name: 'Emerald Blossom',
icon: 'ability_evoker_emeraldblossom',
essenceCost: 3,
manaCost: 12000,
manaCost: 13000,
},
EMERALD_BLOSSOM_ECHO: {
id: 376832,
Expand Down Expand Up @@ -247,6 +247,7 @@ const spells = {
id: 357208,
name: 'Fire Breath',
icon: 'ability_evoker_firebreath',
manaCost: 6500,
},
FIRE_BREATH_DOT: {
id: 357209,
Expand All @@ -257,6 +258,7 @@ const spells = {
id: 382266,
name: 'Fire Breath',
icon: 'ability_evoker_firebreath',
manaCost: 6500,
},
DISINTEGRATE: {
id: 356995,
Expand Down

0 comments on commit 018a4db

Please sign in to comment.