From 8a228d9b07e09a1b6769d4a345f885bf65ea195c Mon Sep 17 00:00:00 2001 From: Josh Date: Sat, 1 Jul 2023 17:18:56 -0400 Subject: [PATCH] fix drw crash (#3232) --- sim/deathknight/dancing_rune_weapon.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sim/deathknight/dancing_rune_weapon.go b/sim/deathknight/dancing_rune_weapon.go index 914edc4d2a..b49ee14367 100644 --- a/sim/deathknight/dancing_rune_weapon.go +++ b/sim/deathknight/dancing_rune_weapon.go @@ -162,8 +162,9 @@ func (dk *Deathknight) NewRuneWeapon() *RuneWeaponPet { runeWeapon.OnPetEnable = runeWeapon.enable runeWeapon.OnPetDisable = runeWeapon.disable + mhWeapon := dk.WeaponFromMainHand(dk.DefaultMeleeCritMultiplier()) runeWeapon.EnableAutoAttacks(runeWeapon, core.AutoAttackOptions{ - MainHand: dk.WeaponFromMainHand(dk.DefaultMeleeCritMultiplier()), + MainHand: mhWeapon, AutoSwingMelee: true, }) @@ -171,8 +172,7 @@ func (dk *Deathknight) NewRuneWeapon() *RuneWeaponPet { runeWeapon.PseudoStats.DamageTakenMultiplier = 0 if dk.Inputs.NewDrw { - mhWeapon := dk.GetMHWeapon() - baseDamage := (mhWeapon.WeaponDamageMin + mhWeapon.WeaponDamageMax) / 2 + baseDamage := (mhWeapon.BaseDamageMin + mhWeapon.BaseDamageMax) / 2 baseDamage = (baseDamage / mhWeapon.SwingSpeed) * 3.5 runeWeapon.AutoAttacks.MH.BaseDamageMin = baseDamage - 150 runeWeapon.AutoAttacks.MH.BaseDamageMax = baseDamage + 150