Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Paladin reorganise metrics display #1988

Merged
merged 3 commits into from
Dec 1, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions sim/paladin/consecration.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,11 @@ func (paladin *Paladin) registerConsecrationSpell() {
})

paladin.Consecration = paladin.RegisterSpell(core.SpellConfig{
ActionID: actionID,
SpellSchool: core.SpellSchoolHoly,
ProcMask: core.ProcMaskEmpty,
ActionID: actionID,
SpellSchool: core.SpellSchoolHoly,
ProcMask: core.ProcMaskEmpty,
Flags: core.SpellFlagMeleeMetrics,

ResourceType: stats.Mana,
BaseCost: baseCost,

Expand Down
8 changes: 5 additions & 3 deletions sim/paladin/exorcism.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,11 @@ func (paladin *Paladin) registerExorcismSpell() {
baseCost := paladin.BaseMana * 0.08 * (1 - 0.02*float64(paladin.Talents.Benediction))

paladin.Exorcism = paladin.RegisterSpell(core.SpellConfig{
ActionID: core.ActionID{SpellID: 48801},
SpellSchool: core.SpellSchoolHoly,
ProcMask: core.ProcMaskSpellDamage,
ActionID: core.ActionID{SpellID: 48801},
SpellSchool: core.SpellSchoolHoly,
ProcMask: core.ProcMaskSpellDamage,
Flags: core.SpellFlagMeleeMetrics,

ResourceType: stats.Mana,
BaseCost: baseCost,

Expand Down
8 changes: 5 additions & 3 deletions sim/paladin/holy_wrath.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,11 @@ func (paladin *Paladin) registerHolyWrathSpell() {
results := make([]*core.SpellResult, len(paladin.Env.Encounter.Targets))

paladin.HolyWrath = paladin.RegisterSpell(core.SpellConfig{
ActionID: core.ActionID{SpellID: 48817},
SpellSchool: core.SpellSchoolHoly,
ProcMask: core.ProcMaskSpellDamage,
ActionID: core.ActionID{SpellID: 48817},
SpellSchool: core.SpellSchoolHoly,
ProcMask: core.ProcMaskSpellDamage,
Flags: core.SpellFlagMeleeMetrics,

ResourceType: stats.Mana,
BaseCost: baseCost,

Expand Down
2 changes: 1 addition & 1 deletion sim/paladin/sov.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ func (paladin *Paladin) registerSealOfVengeanceSpellAndAura() {
ActionID: core.ActionID{SpellID: 31803, Tag: 1}, // Holy Vengeance.
SpellSchool: core.SpellSchoolHoly,
ProcMask: core.ProcMaskEmpty, // Might need to be changed later if SOV secondary rolls can proc other things.
Flags: core.SpellFlagMeleeMetrics,

ApplyEffects: func(sim *core.Simulation, target *core.Unit, spell *core.Spell) {
// Does no damage, just applies dot and rolls.
Expand Down Expand Up @@ -203,6 +202,7 @@ func (paladin *Paladin) createSealOfVengeanceDot(target *core.Unit) *core.Dot {
ActionID: dotActionID,
SpellSchool: core.SpellSchoolHoly,
ProcMask: core.ProcMaskSpellDamage,
Flags: core.SpellFlagMeleeMetrics,

DamageMultiplier: 1 *
(1 + paladin.getItemSetLightswornBattlegearBonus4() + paladin.getItemSetAegisPlateBonus2() + paladin.getTalentSealsOfThePureBonus()),
Expand Down
41 changes: 23 additions & 18 deletions sim/paladin/talents.go
Original file line number Diff line number Diff line change
Expand Up @@ -489,46 +489,51 @@ func (paladin *Paladin) applyRighteousVengeance() {
dotActionID := core.ActionID{SpellID: 61840} // Righteous Vengeance

rvDots := make([]*core.Dot, paladin.Env.GetNumTargets())
rvSpell := paladin.RegisterSpell(core.SpellConfig{
ActionID: dotActionID,
rvProc := paladin.RegisterSpell(core.SpellConfig{
ActionID: dotActionID.WithTag(1),
SpellSchool: core.SpellSchoolHoly,
ProcMask: core.ProcMaskEmpty,
Flags: core.SpellFlagNoOnCastComplete | core.SpellFlagMeleeMetrics | core.SpellFlagIgnoreModifiers,

DamageMultiplier: 1,
CritMultiplier: paladin.MeleeCritMultiplier(),
ThreatMultiplier: 1,
Flags: core.SpellFlagNoOnCastComplete | core.SpellFlagIgnoreModifiers,

ApplyEffects: func(sim *core.Simulation, target *core.Unit, spell *core.Spell) {
rvDots[target.Index].ApplyOrReset(sim)
spell.CalcAndDealOutcome(sim, target, spell.OutcomeAlwaysHit)
},
})

onTick := func(sim *core.Simulation, target *core.Unit, dot *core.Dot) {
dot.CalcAndDealPeriodicSnapshotDamage(sim, target, dot.OutcomeTick)
}
if paladin.HasTuralyonsOrLiadrinsBattlegear2Pc {
onTick = func(sim *core.Simulation, target *core.Unit, dot *core.Dot) {
dot.CalcAndDealPeriodicSnapshotDamage(sim, target, dot.OutcomeTickPhysicalCrit)
}
}
rvSpell := paladin.RegisterSpell(core.SpellConfig{
ActionID: dotActionID.WithTag(2),
SpellSchool: core.SpellSchoolHoly,
ProcMask: core.ProcMaskEmpty,
Flags: core.SpellFlagNoOnCastComplete | core.SpellFlagMeleeMetrics | core.SpellFlagIgnoreModifiers,

DamageMultiplier: 1,
CritMultiplier: paladin.MeleeCritMultiplier(),
ThreatMultiplier: 1,
})

for i := range rvDots {
target := paladin.Env.GetTargetUnit(int32(i))
rvDots[i] = core.NewDot(core.Dot{
Spell: rvSpell,
Aura: target.RegisterAura(core.Aura{
Label: "Righteous Vengeance (DoT) - " + strconv.Itoa(int(paladin.Index)) + " - " + strconv.Itoa(int(target.Index)),
Label: "Righteous Vengeance (DoT) - " + strconv.Itoa(int(paladin.Index)),
ActionID: rvSpell.ActionID,
}),
NumberOfTicks: 4,
TickLength: time.Second * 2,

SnapshotAttackerMultiplier: 1,

OnTick: onTick,
OnTick: func(sim *core.Simulation, target *core.Unit, dot *core.Dot) {
if paladin.HasTuralyonsOrLiadrinsBattlegear2Pc {
dot.CalcAndDealPeriodicSnapshotDamage(sim, target, dot.Spell.OutcomeMeleeSpecialCritOnly)
} else {
dot.CalcAndDealPeriodicSnapshotDamage(sim, target, dot.Spell.OutcomeAlwaysHit)
}
},
})

}

paladin.RegisterAura(core.Aura{
Expand All @@ -555,7 +560,7 @@ func (paladin *Paladin) applyRighteousVengeance() {
newDamage := result.Damage * (0.10 * float64(paladin.Talents.RighteousVengeance))

dot.SnapshotBaseDamage = (outstandingDamage + newDamage) / float64(dot.NumberOfTicks)
rvSpell.Cast(sim, result.Target)
rvProc.Cast(sim, result.Target)
},
})
}
Expand Down
7 changes: 7 additions & 0 deletions ui/core/proto_utils/action_id.ts
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,13 @@ export class ActionId {
name += ' (DoT)'
}
break;
case 'Righteous Vengeance':
if (this.tag == 1) {
name += ' (Application)'
} else if (this.tag == 2) {
name += ' (DoT)'
}
break;
case 'Holy Shield':
if (this.tag == 1) {
name += ' (Proc)';
Expand Down