Skip to content

Commit

Permalink
Add spell masks
Browse files Browse the repository at this point in the history
  • Loading branch information
1337LutZ committed Jan 30, 2025
1 parent d12b875 commit 0149db5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sim/mage/combustion.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,9 @@ func (mage *Mage) registerCombustionSpell() {
})

core.MakeProcTriggerAura(&mage.Unit, core.ProcTrigger{
Name: "Combustion Ignite listener",
ClassSpellMask: MageSpellIgnite,
Callback: core.CallbackOnPeriodicDamageDealt,
Name: "Combustion Dot Calculation Listener",
ClassSpellMask: MageSpellIgnite | MageSpellPyroblastDot | MageSpellLivingBombDot,
Callback: core.CallbackOnCastComplete | core.CallbackOnPeriodicDamageDealt,
Handler: func(sim *core.Simulation, spell *core.Spell, _ *core.SpellResult) {
updateCombustionTickDamageEstimate(sim)
updateCombustionTotalDamageEstimate(sim)
Expand Down
4 changes: 4 additions & 0 deletions sim/mage/talents_fire.go
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,10 @@ func (mage *Mage) applyIgnite() {
return result.Damage * igniteDamageMultiplier * masteryMultiplier
},
})

// This is needed because we want to listen for the spell "cast" event that refreshes the Dot
mage.Ignite.Flags ^= core.SpellFlagNoOnCastComplete

}

func (mage *Mage) applyImpact() {
Expand Down

0 comments on commit 0149db5

Please sign in to comment.