Skip to content

Commit

Permalink
implement obsidian shotgun
Browse files Browse the repository at this point in the history
  • Loading branch information
kayla-glick committed Nov 19, 2024
1 parent 3a451a9 commit fdf156b
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions sim/common/sod/item_effects/phase_6.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ const (
ObsidianSageblade = 233798
ObsidianDefender = 233801
ObsidianHeartseeker = 234428
ObsidianShotgun = 234434

// Brood of Nozdormu Reputations Rings
SignetRingBronzeDominatorR5 = 234034
Expand Down Expand Up @@ -122,6 +123,10 @@ func init() {
ObsidianEdgedAura(ObsidianSageblade, agent)
})

core.NewItemEffect(ObsidianShotgun, func(agent core.Agent) {
ObsidianEdgedAura(ObsidianShotgun, agent)
})

// https://www.wowhead.com/classic/item=233797/obsidian-stormhammer
// Chance on hit: Blasts up to 3 targets for 105 to 145 Nature damage.
// Equip: Chance on direct spell damage or melee attack to deal 325 to 500 Fire damage to your target.
Expand Down Expand Up @@ -311,13 +316,13 @@ func ObsidianEdgedAura(itemID int32, agent core.Agent) {
},
})

meleeProcMask := character.GetProcMaskForItem(itemID)
procMask := character.GetProcMaskForItem(itemID)

core.MakeProcTriggerAura(&character.Unit, core.ProcTrigger{
Name: "Obsidian Edged Proc Melee",
Name: "Obsidian Edged Proc Physical",
Callback: core.CallbackOnSpellHitDealt,
Outcome: core.OutcomeLanded,
ProcMask: meleeProcMask,
ProcMask: procMask,
ProcChance: 0.05,
ICD: time.Millisecond * 2100,
Handler: func(sim *core.Simulation, spell *core.Spell, result *core.SpellResult) {
Expand Down

0 comments on commit fdf156b

Please sign in to comment.