Skip to content

Commit

Permalink
expose black magic aura for pre-pull actions
Browse files Browse the repository at this point in the history
  • Loading branch information
lime-green committed Aug 14, 2023
1 parent 3305804 commit 3af3eb1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
6 changes: 5 additions & 1 deletion sim/common/wotlk/enchant_effects.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ import (
"github.com/wowsims/wotlk/sim/core/stats"
)

func CreateBlackMagicProcAura(character *core.Character) *core.Aura {
return character.NewTemporaryStatsAura("Black Magic Proc", core.ActionID{SpellID: 59626}, stats.Stats{stats.MeleeHaste: 250, stats.SpellHaste: 250}, time.Second*10)
}

func init() {
// Keep these in order by item ID.

Expand Down Expand Up @@ -233,7 +237,7 @@ func init() {
core.NewEnchantEffect(3790, func(agent core.Agent) {
character := agent.GetCharacter()

procAura := character.NewTemporaryStatsAura("Black Magic Proc", core.ActionID{SpellID: 59626}, stats.Stats{stats.MeleeHaste: 250, stats.SpellHaste: 250}, time.Second*10)
procAura := CreateBlackMagicProcAura(character)
icd := core.Cooldown{
Timer: character.NewTimer(),
Duration: time.Second * 35,
Expand Down
4 changes: 4 additions & 0 deletions sim/deathknight/deathknight.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"math"
"time"

"github.com/wowsims/wotlk/sim/common/wotlk"
"github.com/wowsims/wotlk/sim/core"
"github.com/wowsims/wotlk/sim/core/proto"
"github.com/wowsims/wotlk/sim/core/stats"
Expand Down Expand Up @@ -330,6 +331,9 @@ func (dk *Deathknight) Initialize() {
dk.ArmyOfTheDead.Cast(sim, nil)
})
}

// allows us to use these auras in the APL pre-pull actions
wotlk.CreateBlackMagicProcAura(&dk.Character)
}

func (dk *Deathknight) registerMindFreeze() {
Expand Down

0 comments on commit 3af3eb1

Please sign in to comment.