Skip to content

Commit

Permalink
Move constant definition out of OnSpellHitDealt
Browse files Browse the repository at this point in the history
  • Loading branch information
Foknetics committed Feb 7, 2024
1 parent 3409f30 commit 5b0f6dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sim/common/sod/melee_sets.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ var ItemSetElectromanticDevastator = core.NewItemSet(core.ItemSet{
c.AddMana(sim, 100, metrics)
},
})
procChance := 0.05
c.RegisterAura(core.Aura{
Label: "Electromantic Devastator's Mail 3pc",
ActionID: core.ActionID{SpellID: 435982},
Expand All @@ -139,7 +140,6 @@ var ItemSetElectromanticDevastator = core.NewItemSet(core.ItemSet{
},
// Modeled after WotLK JoW https://github.com/wowsims/wotlk/blob/master/sim/core/debuffs.go#L202
OnSpellHitDealt: func(aura *core.Aura, sim *core.Simulation, spell *core.Spell, result *core.SpellResult) {
procChance := 0.05
if spell.ProcMask.Matches(core.ProcMaskEmpty | core.ProcMaskProc | core.ProcMaskWeaponProc) {
return // Phantom spells don't proc
}
Expand Down

0 comments on commit 5b0f6dd

Please sign in to comment.