Skip to content

Commit

Permalink
Merge pull request #657 from wowsims/warrior
Browse files Browse the repository at this point in the history
Warrior: Update Diamond Flask aura with new utility function
  • Loading branch information
rosenrusinov authored Apr 11, 2024
2 parents 98fdde0 + 122bc72 commit bad6ee4
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions sim/common/sod/item_effects/phase_3.go
Original file line number Diff line number Diff line change
Expand Up @@ -384,18 +384,7 @@ func init() {
core.NewItemEffect(DiamondFlask, func(agent core.Agent) {
character := agent.GetCharacter()

buffAura := character.GetOrRegisterAura(core.Aura{
Label: "Diamond Flask",
ActionID: core.ActionID{SpellID: 24427},
Duration: time.Second * 60,

OnGain: func(aura *core.Aura, sim *core.Simulation) {
character.AddStatDynamic(sim, stats.Strength, 75)
},
OnExpire: func(aura *core.Aura, sim *core.Simulation) {
character.AddStatDynamic(sim, stats.Strength, -75)
},
})
buffAura := character.NewTemporaryStatsAura("Diamond Flask", core.ActionID{SpellID: 24427}, stats.Stats{stats.Strength: 75}, time.Second*60)

triggerSpell := character.GetOrRegisterSpell(core.SpellConfig{
ActionID: core.ActionID{SpellID: 24427},
Expand Down

0 comments on commit bad6ee4

Please sign in to comment.