-
Notifications
You must be signed in to change notification settings - Fork 135
/
mark_of_blood.go
50 lines (42 loc) · 1015 Bytes
/
mark_of_blood.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
package deathknight
import (
"time"
"github.com/wowsims/wotlk/sim/core"
)
func (dk *Deathknight) registerMarkOfBloodSpell() {
if !dk.Talents.MarkOfBlood {
return
}
actionID := core.ActionID{SpellID: 49005}
cdTimer := dk.NewTimer()
cd := time.Minute * 3
var markOfBloodAura *core.Aura = nil
dk.MarkOfBlood = dk.RegisterSpell(core.SpellConfig{
ActionID: actionID,
Flags: core.SpellFlagNoOnCastComplete | core.SpellFlagAPL,
RuneCost: core.RuneCostOptions{
BloodRuneCost: 1,
},
Cast: core.CastConfig{
DefaultCast: core.Cast{
GCD: core.GCDDefault,
},
CD: core.Cooldown{
Timer: cdTimer,
Duration: cd,
},
},
ApplyEffects: func(sim *core.Simulation, target *core.Unit, spell *core.Spell) {
if markOfBloodAura == nil {
markOfBloodAura = core.MarkOfBloodAura(target)
}
markOfBloodAura.Activate(sim)
},
})
if !dk.Inputs.IsDps {
dk.AddMajorCooldown(core.MajorCooldown{
Spell: dk.MarkOfBlood,
Type: core.CooldownTypeSurvival,
})
}
}