Skip to content

Commit

Permalink
add ranged proc mask
Browse files Browse the repository at this point in the history
  • Loading branch information
kayla-glick committed Nov 29, 2024
1 parent 895acdf commit 022a66f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
20 changes: 12 additions & 8 deletions sim/core/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,13 @@ const (
ProcMaskRangedSpecial
ProcMaskSpellDamage
ProcMaskSpellHealing
ProcMaskSpellProc // Special mask for Spell procs that can trigger things (Can be used together with damage proc mask or alone)
ProcMaskMeleeProc // Special mask for Melee procs that can trigger things (Can be used together with damage proc mask or alone)
ProcMaskSpellDamageProc // Mask for procs triggering from spell damage procs like FT weapon and rogue poisons
ProcMaskMeleeDamageProc // Mask for procs (e.g. War Rune / Focuessed Attacks) triggering from melee damage procs

ProcMaskMeleeProc // Special mask for Melee procs that can trigger things (Can be used together with damage proc mask or alone)
ProcMaskRangedProc // Special mask for Ranged procs that can trigger things (Can be used together with damage proc mask or alone)
ProcMaskSpellProc // Special mask for Spell procs that can trigger things (Can be used together with damage proc mask or alone)
ProcMaskMeleeDamageProc // Mask for procs (e.g. Art of War Rune Focuessed Attacks) triggering from melee damage procs
ProcMaskRangedDamageProc // Mask for procs triggering from ranged damage procs
ProcMaskSpellDamageProc // Mask for procs triggering from spell damage procs like FT weapon and rogue poisons

)

Expand All @@ -77,11 +80,12 @@ const (

ProcMaskSpecial = ProcMaskMeleeOrRangedSpecial | ProcMaskSpellDamage

ProcMaskMeleeOrMeleeProc = ProcMaskMelee | ProcMaskMeleeProc
ProcMaskSpellOrSpellProc = ProcMaskSpellDamage | ProcMaskSpellProc
ProcMaskMeleeOrMeleeProc = ProcMaskMelee | ProcMaskMeleeProc
ProcMaskRangedOrRangedProc = ProcMaskRanged | ProcMaskRangedProc
ProcMaskSpellOrSpellProc = ProcMaskSpellDamage | ProcMaskSpellProc

ProcMaskProc = ProcMaskSpellProc | ProcMaskMeleeProc
ProcMaskDamageProc = ProcMaskSpellDamageProc | ProcMaskMeleeDamageProc // Mask for Fiery Weapon and Blazefury Medalion that trigger melee and spell procs
ProcMaskProc = ProcMaskMeleeProc | ProcMaskRangedProc | ProcMaskSpellProc
ProcMaskDamageProc = ProcMaskMeleeDamageProc | ProcMaskRangedDamageProc | ProcMaskSpellDamageProc // Mask for Fiery Weapon and Blazefury Medalion that trigger melee and spell procs
)

// Possible outcomes of any hit/damage roll.
Expand Down
2 changes: 1 addition & 1 deletion sim/hunter/serpent_sting.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ func (hunter *Hunter) chimeraShotSerpentStingSpell(rank int) *core.Spell {
SpellSchool: core.SpellSchoolNature,
CastType: proto.CastType_CastTypeRanged,
DefenseType: core.DefenseTypeRanged,
ProcMask: core.ProcMaskEmpty,
ProcMask: core.ProcMaskRangedProc | core.ProcMaskRangedDamageProc,
Flags: core.SpellFlagMeleeMetrics | core.SpellFlagPassiveSpell,
MissileSpeed: 24,

Expand Down

0 comments on commit 022a66f

Please sign in to comment.