Skip to content

Commit

Permalink
Merge pull request #3082 from wowsims/drw_ptr
Browse files Browse the repository at this point in the history
update ptr drw
  • Loading branch information
rosenrusinov authored May 12, 2023
2 parents 16a4fd6 + 85a385b commit aaf0fcb
Show file tree
Hide file tree
Showing 7 changed files with 161 additions and 151 deletions.
5 changes: 1 addition & 4 deletions sim/deathknight/blood_strike.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,7 @@ func (dk *Deathknight) registerDrwBloodStrikeSpell() {
ThreatMultiplier: 1,

ApplyEffects: func(sim *core.Simulation, target *core.Unit, spell *core.Spell) {
baseDamage := 764 +
bonusBaseDamage +
spell.Unit.MHNormalizedWeaponDamage(sim, spell.MeleeAttackPower()) +
spell.BonusWeaponDamage()
baseDamage := 764 + bonusBaseDamage + dk.DrwWeaponDamage(sim, spell)

baseDamage *= dk.RoRTSBonus(target) *
(1.0 + dk.drwCountActiveDiseases(target)*diseaseMulti)
Expand Down
10 changes: 10 additions & 0 deletions sim/deathknight/dancing_rune_weapon.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,16 @@ func (runeWeapon *RuneWeaponPet) Initialize() {
runeWeapon.dkOwner.registerDrwDeathCoilSpell()
}

func (dk *Deathknight) DrwWeaponDamage(sim *core.Simulation, spell *core.Spell) float64 {
if dk.Inputs.NewDrw {
return spell.Unit.MHWeaponDamage(sim, spell.MeleeAttackPower()) +
spell.BonusWeaponDamage()
} else {
return spell.Unit.MHNormalizedWeaponDamage(sim, spell.MeleeAttackPower()) +
spell.BonusWeaponDamage()
}
}

func (dk *Deathknight) NewRuneWeapon() *RuneWeaponPet {
// Remove any hit that would be given by NocS as it does not translate to pets
nocsHit := 0.0
Expand Down
9 changes: 5 additions & 4 deletions sim/deathknight/death_strike.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ func (dk *Deathknight) registerDeathStrikeSpell() {

func (dk *Deathknight) registerDrwDeathStrikeSpell() {
bonusBaseDamage := dk.sigilOfAwarenessBonus()
hasGlyph := dk.HasMajorGlyph(proto.DeathknightMajorGlyph_GlyphOfDeathStrike)

dk.RuneWeapon.DeathStrike = dk.RuneWeapon.RegisterSpell(core.SpellConfig{
ActionID: DeathStrikeActionID.WithTag(1),
Expand All @@ -110,11 +111,11 @@ func (dk *Deathknight) registerDrwDeathStrikeSpell() {
ThreatMultiplier: 1,

ApplyEffects: func(sim *core.Simulation, target *core.Unit, spell *core.Spell) {
baseDamage := 297 +
bonusBaseDamage +
spell.Unit.MHNormalizedWeaponDamage(sim, spell.MeleeAttackPower()) +
spell.BonusWeaponDamage()
baseDamage := 297 + bonusBaseDamage + dk.DrwWeaponDamage(sim, spell)

if hasGlyph {
baseDamage *= 1 + 0.01*core.MinFloat(dk.CurrentRunicPower(), 25)
}
spell.CalcAndDealDamage(sim, target, baseDamage, spell.OutcomeMeleeWeaponSpecialHitAndCrit)
},
})
Expand Down
Loading

0 comments on commit aaf0fcb

Please sign in to comment.