Skip to content
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
29 changes: 23 additions & 6 deletions sim/common/sod/item_effects/phase_8.go
Original file line number Diff line number Diff line change
Expand Up @@ -768,17 +768,16 @@ func init() {
},
})

channelSpell := character.RegisterSpell(core.SpellConfig{
whirlwindSpell := character.RegisterSpell(core.SpellConfig{
ActionID: core.ActionID{SpellID: 1231547},
SpellSchool: core.SpellSchoolPhysical,
ProcMask: core.ProcMaskMeleeMHSpecial,
Flags: core.SpellFlagChanneled,
Dot: core.DotConfig{
Aura: core.Aura{
Label: "Ravagane Whirlwind",
},
NumberOfTicks: 3,
TickLength: time.Second * 3,
NumberOfTicks: 6,
TickLength: time.Millisecond * 1500,
IsAOE: true,
OnTick: func(sim *core.Simulation, target *core.Unit, dot *core.Dot) {
tickSpell.Cast(sim, target)
Expand All @@ -789,13 +788,31 @@ func init() {
return character.RegisterAura(core.Aura{
Label: "Ravagane Bladestorm",
Duration: time.Second * 9,
Icd: &core.Cooldown{
Timer: character.NewTimer(),
Duration: time.Second * 8,
},
OnGain: func(aura *core.Aura, sim *core.Simulation) {
if !aura.Icd.IsReady(sim) {
return
}
aura.Icd.Use(sim)

whirlwindSpell.AOEDot().Apply(sim)
character.AutoAttacks.CancelAutoSwing(sim)
},
OnRefresh: func(aura *core.Aura, sim *core.Simulation) {
if !aura.Icd.IsReady(sim) {
return
}
aura.Icd.Use(sim)

whirlwindSpell.AOEDot().ApplyOrReset(sim)
character.AutoAttacks.CancelAutoSwing(sim)
channelSpell.AOEDot().Apply(sim)
},
OnExpire: func(aura *core.Aura, sim *core.Simulation) {
whirlwindSpell.AOEDot().Cancel(sim)
character.AutoAttacks.EnableAutoSwing(sim)
channelSpell.AOEDot().Cancel(sim)
},
})
})
Expand Down
7 changes: 5 additions & 2 deletions sim/core/dot.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,11 @@ func (dot *Dot) ApplyOrReset(sim *Simulation) {
dot.TickCount = 0

oldTickAction := dot.tickAction
dot.tickAction = nil // prevent tickAction.CleanUp() from adding an extra tick
oldTickAction.Cancel(sim) // remove old PA ticker
dot.tickAction = nil // prevent tickAction.CleanUp() from adding an extra tick

if oldTickAction != nil {
oldTickAction.Cancel(sim)
}

// recreate with new period, resetting the next tick.
periodicOptions := dot.basePeriodicOptions()
Expand Down
Loading