diff --git a/sim/shaman/enhancement/priority_rotation.go b/sim/shaman/enhancement/priority_rotation.go index 250c289681..9a5fd9986f 100644 --- a/sim/shaman/enhancement/priority_rotation.go +++ b/sim/shaman/enhancement/priority_rotation.go @@ -78,6 +78,18 @@ func (rotation *PriorityRotation) buildPriorityRotation(enh *EnhancementShaman) }, } + chainLightning := Spell{ + condition: func(sim *core.Simulation, target *core.Unit) bool { + return enh.MaelstromWeaponAura.GetStacks() == 5 && enh.ChainLightning.IsReady(sim) + }, + cast: func(sim *core.Simulation, target *core.Unit) bool { + return enh.ChainLightning.Cast(sim, enh.CurrentTarget) + }, + readyAt: func() time.Duration { + return 0 + }, + } + stormstrike := Spell{ condition: func(sim *core.Simulation, target *core.Unit) bool { //Checking if we learned the spell, ie untalented @@ -294,6 +306,8 @@ func (rotation *PriorityRotation) buildPriorityRotation(enh *EnhancementShaman) spellPriority = append(spellPriority, stormstrikeApplyDebuff) case int32(proto.EnhancementShaman_Rotation_LightningBolt): spellPriority = append(spellPriority, instantLightningBolt) + case int32(proto.EnhancementShaman_Rotation_ChainLightning): + spellPriority = append(spellPriority, chainLightning) case int32(proto.EnhancementShaman_Rotation_LightningBoltWeave): rotation.options.LightningboltWeave = true spellPriority = append(spellPriority, weaveLightningBolt) diff --git a/ui/enhancement_shaman/inputs.ts b/ui/enhancement_shaman/inputs.ts index 29af345d85..14447190ad 100644 --- a/ui/enhancement_shaman/inputs.ts +++ b/ui/enhancement_shaman/inputs.ts @@ -128,6 +128,7 @@ export const EnhancementShamanRotationConfig = { { actionId: ActionId.fromSpellId(49238), value: CustomRotationSpell.LightningBolt}, { actionId: ActionId.fromSpellId(49238), value: CustomRotationSpell.LightningBoltWeave, text: "Weave" }, { actionId: ActionId.fromSpellId(49238), value: CustomRotationSpell.LightningBoltDelayedWeave, text: "Delay" }, + { actionId: ActionId.fromSpellId(49271), value: CustomRotationSpell.ChainLightning}, { actionId: ActionId.fromSpellId(17364), value: CustomRotationSpell.StormstrikeDebuffMissing, text: "Debuff" }, { actionId: ActionId.fromSpellId(17364), value: CustomRotationSpell.Stormstrike }, { actionId: ActionId.fromSpellId(49233), value: CustomRotationSpell.FlameShock },