From 3af3eb1ca4a27a5008e86700291a4ad0099ccf55 Mon Sep 17 00:00:00 2001 From: Josh DM Date: Sun, 13 Aug 2023 20:30:04 -0400 Subject: [PATCH] expose black magic aura for pre-pull actions --- sim/common/wotlk/enchant_effects.go | 6 +++++- sim/deathknight/deathknight.go | 4 ++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/sim/common/wotlk/enchant_effects.go b/sim/common/wotlk/enchant_effects.go index 441052b900..616d328915 100644 --- a/sim/common/wotlk/enchant_effects.go +++ b/sim/common/wotlk/enchant_effects.go @@ -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. @@ -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, diff --git a/sim/deathknight/deathknight.go b/sim/deathknight/deathknight.go index 63913bb9e9..b933d3a8f8 100644 --- a/sim/deathknight/deathknight.go +++ b/sim/deathknight/deathknight.go @@ -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" @@ -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() {