Skip to content

Commit

Permalink
Fix APL usage of Hemorrhage, Mutilate, and Hunger for Blood
Browse files Browse the repository at this point in the history
  • Loading branch information
catszeid committed Aug 17, 2023
1 parent d38a4f4 commit b760f65
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
4 changes: 4 additions & 0 deletions sim/rogue/hemorrhage.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ import (
)

func (rogue *Rogue) registerHemorrhageSpell() {
if !rogue.Talents.Hemorrhage {
return
}

actionID := core.ActionID{SpellID: 48660}

var numPlayers int
Expand Down
8 changes: 6 additions & 2 deletions sim/rogue/mutilate.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func (rogue *Rogue) newMutilateHitSpell(isMH bool) *core.Spell {
ActionID: actionID,
SpellSchool: core.SpellSchoolPhysical,
ProcMask: procMask,
Flags: core.SpellFlagMeleeMetrics | SpellFlagBuilder | SpellFlagColdBlooded | core.SpellFlagAPL,
Flags: core.SpellFlagMeleeMetrics | SpellFlagBuilder | SpellFlagColdBlooded,

BonusCritRating: core.TernaryFloat64(rogue.HasSetBonus(Tier9, 4), 5*core.CritRatingPerCritChance, 0) +
[]float64{0, 2, 4, 6}[rogue.Talents.TurnTheTables]*core.CritRatingPerCritChance +
Expand Down Expand Up @@ -54,14 +54,18 @@ func (rogue *Rogue) newMutilateHitSpell(isMH bool) *core.Spell {
}

func (rogue *Rogue) registerMutilateSpell() {
if !rogue.Talents.Mutilate {
return
}

rogue.MutilateMH = rogue.newMutilateHitSpell(true)
rogue.MutilateOH = rogue.newMutilateHitSpell(false)

rogue.Mutilate = rogue.RegisterSpell(core.SpellConfig{
ActionID: core.ActionID{SpellID: MutilateSpellID},
SpellSchool: core.SpellSchoolPhysical,
ProcMask: core.ProcMaskMeleeMHSpecial,
Flags: core.SpellFlagMeleeMetrics,
Flags: core.SpellFlagMeleeMetrics | core.SpellFlagAPL,

EnergyCost: core.EnergyCostOptions{
Cost: rogue.costModifier(60 - core.TernaryFloat64(rogue.HasMajorGlyph(proto.RogueMajorGlyph_GlyphOfMutilate), 5, 0)),
Expand Down
1 change: 1 addition & 0 deletions sim/rogue/talents.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ func (rogue *Rogue) registerHungerForBlood() {

rogue.HungerForBlood = rogue.RegisterSpell(core.SpellConfig{
ActionID: actionID,
Flags: core.SpellFlagAPL,

EnergyCost: core.EnergyCostOptions{
Cost: 15,
Expand Down

0 comments on commit b760f65

Please sign in to comment.