Skip to content

Commit

Permalink
fix obsidian champion procs
Browse files Browse the repository at this point in the history
  • Loading branch information
kayla-glick committed Dec 5, 2024
1 parent aa6b94f commit dbca3a0
Showing 1 changed file with 30 additions and 2 deletions.
32 changes: 30 additions & 2 deletions sim/common/sod/item_effects/phase_6.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,37 @@ func init() {
// (2.1s cooldown)
core.NewItemEffect(ObsidianChampion, func(agent core.Agent) {
character := agent.GetCharacter()
vanilla.StrengthOfTheChampionAura(character)
vanilla.EnrageAura446327(character)

ObsidianEdgedAura(ObsidianChampion, agent)

strengthAura := vanilla.StrengthOfTheChampionAura(character)
enrageAura := vanilla.EnrageAura446327(character)

procMask := character.GetProcMaskForItem(ObsidianChampion)

core.MakeProcTriggerAura(&character.Unit, core.ProcTrigger{
Name: "Obsidian Champion (Strength)",
Callback: core.CallbackOnSpellHitDealt,
Outcome: core.OutcomeLanded,
ProcMask: procMask,
SpellFlagsExclude: core.SpellFlagSuppressWeaponProcs,
PPM: 1, // Estimated based on data from WoW Armaments Discord
Handler: func(sim *core.Simulation, spell *core.Spell, result *core.SpellResult) {
strengthAura.Activate(sim)
},
})

core.MakeProcTriggerAura(&character.Unit, core.ProcTrigger{
Name: "Obsidian Champion (Enrage)",
Callback: core.CallbackOnSpellHitDealt,
Outcome: core.OutcomeLanded,
ProcMask: procMask,
SpellFlagsExclude: core.SpellFlagSuppressWeaponProcs,
PPM: 1, // Estimated based on data from WoW Armaments Discord
Handler: func(sim *core.Simulation, spell *core.Spell, result *core.SpellResult) {
enrageAura.Activate(sim)
},
})
})

// https://www.wowhead.com/classic/item=233801/obsidian-defender
Expand Down

0 comments on commit dbca3a0

Please sign in to comment.