Skip to content

Commit

Permalink
Prepull damage shouldn't count (#4016)
Browse files Browse the repository at this point in the history
* do not count prepull spells towards DPS / threat

* update tests
  • Loading branch information
lime-green authored Nov 8, 2023
1 parent fe2066d commit c3c785d
Show file tree
Hide file tree
Showing 3 changed files with 342 additions and 340 deletions.
6 changes: 4 additions & 2 deletions sim/core/spell_result.go
Original file line number Diff line number Diff line change
Expand Up @@ -230,8 +230,10 @@ func (spell *Spell) CalcAndDealOutcome(sim *Simulation, target *Unit, outcomeApp

// Applies the fully computed spell result to the sim.
func (spell *Spell) dealDamageInternal(sim *Simulation, isPeriodic bool, result *SpellResult) {
spell.SpellMetrics[result.Target.UnitIndex].TotalDamage += result.Damage
spell.SpellMetrics[result.Target.UnitIndex].TotalThreat += result.Threat
if sim.CurrentTime >= 0 {
spell.SpellMetrics[result.Target.UnitIndex].TotalDamage += result.Damage
spell.SpellMetrics[result.Target.UnitIndex].TotalThreat += result.Threat
}

// Mark total damage done in raid so far for health based fights.
// Don't include damage done by EnemyUnits to Players
Expand Down
Loading

0 comments on commit c3c785d

Please sign in to comment.