Skip to content

Commit

Permalink
Merge branch 'wowsims:master' into custom_rotation_chainlightning
Browse files Browse the repository at this point in the history
  • Loading branch information
Horatio27 authored May 14, 2023
2 parents 27a7116 + 3295b7c commit 69f8039
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 16 deletions.
10 changes: 5 additions & 5 deletions sim/common/wotlk/capacitors.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ func init() {
MaxStacks: 4,
Trigger: core.ProcTrigger{
Callback: core.CallbackOnSpellHitDealt,
ProcMask: core.ProcMaskSpellDamage,
ProcMask: core.ProcMaskSpellDamage | core.ProcMaskCanProcFromProc,
Outcome: core.OutcomeCrit,
ICD: time.Millisecond * 2500,
ActionID: core.ActionID{ItemID: 38072},
Expand All @@ -102,7 +102,7 @@ func init() {
MaxStacks: 3,
Trigger: core.ProcTrigger{
Callback: core.CallbackOnSpellHitDealt,
ProcMask: core.ProcMaskSpellDamage,
ProcMask: core.ProcMaskSpellDamage | core.ProcMaskCanProcFromProc,
Outcome: core.OutcomeCrit,
ICD: time.Millisecond * 2000,
ActionID: core.ActionID{ItemID: 47182},
Expand All @@ -117,7 +117,7 @@ func init() {
MaxStacks: 3,
Trigger: core.ProcTrigger{
Callback: core.CallbackOnSpellHitDealt,
ProcMask: core.ProcMaskSpellDamage,
ProcMask: core.ProcMaskSpellDamage | core.ProcMaskCanProcFromProc,
Outcome: core.OutcomeCrit,
ICD: time.Millisecond * 2000,
ActionID: core.ActionID{ItemID: 47188},
Expand All @@ -135,7 +135,7 @@ func init() {
MaxStacks: 3,
Trigger: core.ProcTrigger{
Callback: core.CallbackOnSpellHitDealt,
ProcMask: core.ProcMaskSpellDamage,
ProcMask: core.ProcMaskSpellDamage | core.ProcMaskCanProcFromProc,
Outcome: core.OutcomeCrit,
ICD: time.Millisecond * 2000,
ActionID: core.ActionID{ItemID: 47316},
Expand All @@ -150,7 +150,7 @@ func init() {
MaxStacks: 3,
Trigger: core.ProcTrigger{
Callback: core.CallbackOnSpellHitDealt,
ProcMask: core.ProcMaskSpellDamage,
ProcMask: core.ProcMaskSpellDamage | core.ProcMaskCanProcFromProc,
Outcome: core.OutcomeCrit,
ICD: time.Millisecond * 2000,
ActionID: core.ActionID{ItemID: 47477},
Expand Down
2 changes: 1 addition & 1 deletion sim/core/debuffs.go
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ func JudgementOfWisdomAura(target *Unit) *Aura {
return
}

if spell.ProcMask.Matches(ProcMaskEmpty) {
if spell.ProcMask.Matches(ProcMaskEmpty) || spell.ProcMask.Matches(ProcMaskCanProcFromProc) {
return // Phantom spells (Romulo's, Lightning Capacitor, etc) don't proc JoW.
}

Expand Down
3 changes: 3 additions & 0 deletions sim/core/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ const (
ProcMaskRangedSpecial
ProcMaskSpellDamage
ProcMaskSpellHealing

// Special case where a Proc Can trigger a Proc
ProcMaskCanProcFromProc
)

const (
Expand Down
16 changes: 8 additions & 8 deletions sim/shaman/enhancement/TestEnhancement.results
Original file line number Diff line number Diff line change
Expand Up @@ -511,8 +511,8 @@ dps_results: {
dps_results: {
key: "TestEnhancement-AllItems-InsightfulEarthsiegeDiamond"
value: {
dps: 7096.6981
tps: 4019.59834
dps: 7095.07269
tps: 4015.89689
}
}
dps_results: {
Expand Down Expand Up @@ -603,15 +603,15 @@ dps_results: {
dps_results: {
key: "TestEnhancement-AllItems-ReignoftheDead-47316"
value: {
dps: 7310.44865
tps: 4173.41128
dps: 7439.3566
tps: 4264.42042
}
}
dps_results: {
key: "TestEnhancement-AllItems-ReignoftheDead-47477"
value: {
dps: 7340.91522
tps: 4193.66483
dps: 7489.77367
tps: 4298.63581
}
}
dps_results: {
Expand Down Expand Up @@ -729,8 +729,8 @@ dps_results: {
dps_results: {
key: "TestEnhancement-AllItems-SparkofLife-37657"
value: {
dps: 7141.10933
tps: 4039.55922
dps: 7140.99674
tps: 4039.70467
}
}
dps_results: {
Expand Down
6 changes: 4 additions & 2 deletions sim/shaman/weapon_imbues.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,8 @@ func (shaman *Shaman) newFlametongueImbueSpell(isMH bool) *core.Spell {
return shaman.RegisterSpell(core.SpellConfig{
ActionID: core.ActionID{SpellID: 58790},
SpellSchool: core.SpellSchoolFire,
ProcMask: core.ProcMaskEmpty,
ProcMask: core.ProcMaskCanProcFromProc,
Flags: core.SpellFlagNoOnCastComplete,

BonusHitRating: float64(shaman.Talents.ElementalPrecision) * core.SpellHitRatingPerHitChance,
DamageMultiplier: 1,
Expand Down Expand Up @@ -231,7 +232,8 @@ func (shaman *Shaman) newFlametongueDownrankImbueSpell(isMH bool) *core.Spell {
return shaman.RegisterSpell(core.SpellConfig{
ActionID: core.ActionID{SpellID: 58789},
SpellSchool: core.SpellSchoolFire,
ProcMask: core.ProcMaskEmpty,
ProcMask: core.ProcMaskCanProcFromProc,
Flags: core.SpellFlagNoOnCastComplete,

BonusHitRating: float64(shaman.Talents.ElementalPrecision) * core.SpellHitRatingPerHitChance,
DamageMultiplier: 1,
Expand Down

0 comments on commit 69f8039

Please sign in to comment.