From 7c3a6c02968d2d35ab00c230e1dee4e3bb4a978b Mon Sep 17 00:00:00 2001 From: Kayla Glick <12898988+kayla-glick@users.noreply.github.com> Date: Mon, 23 Dec 2024 12:40:26 -0500 Subject: [PATCH] Delete sim/druid/starfall.go --- sim/druid/starfall.go | 119 ------------------------------------------ 1 file changed, 119 deletions(-) delete mode 100644 sim/druid/starfall.go diff --git a/sim/druid/starfall.go b/sim/druid/starfall.go deleted file mode 100644 index aed63c344..000000000 --- a/sim/druid/starfall.go +++ /dev/null @@ -1,119 +0,0 @@ -package druid - -import ( - "time" - - "github.com/wowsims/classic/sim/core" - "github.com/wowsims/classic/sim/core/proto" -) - -// We register two spells to apply two different dot effects and get two entries in Damage/Detailed results -func (druid *Druid) registerStarfallCD() { - if !druid.HasRune(proto.DruidRune_RuneCloakStarfall) { - return - } - - actionID := core.ActionID{SpellID: int32(proto.DruidRune_RuneCloakStarfall)} - - baseDamageLow := druid.baseRuneAbilityDamage() * 0.46 - baseDamageHigh := druid.baseRuneAbilityDamage() * 0.54 - baseDamageSplash := druid.baseRuneAbilityDamage() * 0.08 - spellCoefTick := 0.3 - spellCoefSplash := 0.127 - - numberOfTicks := core.TernaryInt32(druid.Env.GetNumTargets() > 1, 20, 10) - tickLength := time.Second - cooldown := time.Second * 90 - - druid.StarfallSplash = druid.RegisterSpell(Any, core.SpellConfig{ - SpellCode: SpellCode_DruidStarfallSplash, - ActionID: actionID.WithTag(2), - SpellSchool: core.SpellSchoolArcane, - DefenseType: core.DefenseTypeMagic, - ProcMask: core.ProcMaskEmpty, - - DamageMultiplier: 1, - ThreatMultiplier: 1, - BonusCoefficient: spellCoefSplash, - - ApplyEffects: func(sim *core.Simulation, target *core.Unit, spell *core.Spell) { - // Apply the base spell's multipliers to pick up on effects that only affect spells with DoTs - spell.DamageMultiplierAdditive += druid.Starfall.PeriodicDamageMultiplierAdditive - 1 - - for _, aoeTarget := range sim.Encounter.TargetUnits { - spell.CalcAndDealDamage(sim, aoeTarget, baseDamageSplash, spell.OutcomeMagicHitAndCrit) - } - - spell.DamageMultiplierAdditive -= druid.Starfall.PeriodicDamageMultiplierAdditive - 1 - }, - }) - - druid.StarfallTick = druid.RegisterSpell(Humanoid|Moonkin, core.SpellConfig{ - SpellCode: SpellCode_DruidStarfallTick, - ActionID: actionID.WithTag(1), - SpellSchool: core.SpellSchoolArcane, - DefenseType: core.DefenseTypeMagic, - ProcMask: core.ProcMaskSpellDamage, // Shown to proc things in-game - Flags: core.SpellFlagBinary, - - DamageMultiplier: 1, - ThreatMultiplier: 1, - BonusCoefficient: spellCoefTick, - - ApplyEffects: func(sim *core.Simulation, target *core.Unit, spell *core.Spell) { - baseDamage := sim.Roll(baseDamageLow, baseDamageHigh) - - // Apply the base spell's multipliers to pick up on effects that only affect spells with DoTs - spell.DamageMultiplierAdditive += druid.Starfall.PeriodicDamageMultiplierAdditive - 1 - spell.CalcAndDealDamage(sim, target, baseDamage, spell.OutcomeMagicHitAndCrit) - spell.DamageMultiplierAdditive -= druid.Starfall.PeriodicDamageMultiplierAdditive - 1 - - druid.StarfallSplash.Cast(sim, target) - }, - }) - - druid.Starfall = druid.RegisterSpell(Humanoid|Moonkin, core.SpellConfig{ - SpellCode: SpellCode_DruidStarfall, - ActionID: actionID, - SpellSchool: core.SpellSchoolArcane, - ProcMask: core.ProcMaskEmpty, - Flags: core.SpellFlagAPL | SpellFlagOmen, - - ManaCost: core.ManaCostOptions{ - BaseCost: 0.39, - }, - - Cast: core.CastConfig{ - DefaultCast: core.Cast{ - GCD: core.GCDDefault, - }, - CD: core.Cooldown{ - Timer: druid.NewTimer(), - Duration: cooldown, - }, - }, - - Dot: core.DotConfig{ - Aura: core.Aura{ - Label: "Starfall", - }, - NumberOfTicks: numberOfTicks, - TickLength: tickLength, - OnTick: func(sim *core.Simulation, target *core.Unit, dot *core.Dot) { - druid.StarfallTick.Cast(sim, target) - }, - }, - - DamageMultiplier: 1, - ThreatMultiplier: 1, - - ApplyEffects: func(sim *core.Simulation, target *core.Unit, spell *core.Spell) { - spell.Dot(target).Apply(sim) - }, - }) - - druid.AddMajorCooldown(core.MajorCooldown{ - Spell: druid.Starfall.Spell, - Type: core.CooldownTypeDPS, - }) -}