Skip to content

Commit

Permalink
Merge pull request #3087 from Horatio27/custom_rotation_chainlightning
Browse files Browse the repository at this point in the history
Added to Enh Custom rotation chain lightning
  • Loading branch information
Horatio27 authored May 14, 2023
2 parents 3295b7c + 69f8039 commit 8c7269f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
14 changes: 14 additions & 0 deletions sim/shaman/enhancement/priority_rotation.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down
1 change: 1 addition & 0 deletions ui/enhancement_shaman/inputs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
Expand Down

0 comments on commit 8c7269f

Please sign in to comment.