Skip to content

Commit

Permalink
Update swipe.go
Browse files Browse the repository at this point in the history
  • Loading branch information
kayla-glick authored Dec 23, 2024
1 parent 68e1bc6 commit d64de8a
Showing 1 changed file with 1 addition and 49 deletions.
50 changes: 1 addition & 49 deletions sim/druid/swipe.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ var SwipeLevel = [SwipeRanks + 1]int{0, 16, 24, 34, 44, 54}
const SwipeThreatMultiplier = 2.0

func (druid *Druid) registerSwipeBearSpell() {
hasImprovedSwipeRune := druid.HasRune(proto.DruidRune_RuneCloakImprovedSwipe)

rank := map[int32]int{
25: 2,
40: 3,
Expand All @@ -32,7 +30,7 @@ func (druid *Druid) registerSwipeBearSpell() {
baseDamage := SwipeBaseDamage[rank]

rageCost := 20 - float64(druid.Talents.Ferocity)
targetCount := core.TernaryInt32(hasImprovedSwipeRune, 10, 3)
targetCount := 3
numHits := min(targetCount, druid.Env.GetNumTargets())
results := make([]*core.SpellResult, numHits)

Expand Down Expand Up @@ -77,49 +75,3 @@ func (druid *Druid) registerSwipeBearSpell() {
},
})
}

func (druid *Druid) registerSwipeCatSpell() {
if !druid.HasRune(proto.DruidRune_RuneCloakImprovedSwipe) {
return
}

weaponMulti := 2.5

druid.SwipeCat = druid.RegisterSpell(Cat, core.SpellConfig{
ActionID: core.ActionID{SpellID: 411128},
SpellSchool: core.SpellSchoolPhysical,
DefenseType: core.DefenseTypeMelee,
ProcMask: core.ProcMaskMeleeMHSpecial,
Flags: core.SpellFlagMeleeMetrics | core.SpellFlagAPL | SpellFlagOmen | SpellFlagBuilder,

EnergyCost: core.EnergyCostOptions{
Cost: 50 - float64(druid.Talents.Ferocity),
},

Cast: core.CastConfig{
DefaultCast: core.Cast{
GCD: time.Second,
},
IgnoreHaste: true,
},

DamageMultiplier: (1 + 0.1*float64(druid.Talents.SavageFury)) * weaponMulti,
ThreatMultiplier: 1,

ApplyEffects: func(sim *core.Simulation, target *core.Unit, spell *core.Spell) {
baseDamage := spell.Unit.MHNormalizedWeaponDamage(sim, spell.MeleeAttackPower())
aoeTarget := target
for i := 0; i < len(sim.Encounter.TargetUnits); i++ {
result := spell.CalcAndDealDamage(sim, aoeTarget, baseDamage, spell.OutcomeMeleeSpecialHitAndCrit)
if i == 0 && result.Landed() {
druid.AddComboPoints(sim, 1, target, spell.ComboPointMetrics())
}
aoeTarget = sim.Environment.NextTargetUnit(aoeTarget)
}
},
})
}

func (druid *Druid) CurrentSwipeCatCost() float64 {
return druid.SwipeCat.Cost.GetCurrentCost()
}

0 comments on commit d64de8a

Please sign in to comment.