-
Notifications
You must be signed in to change notification settings - Fork 133
/
blood_boil.go
67 lines (55 loc) · 2.2 KB
/
blood_boil.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
package deathknight
import (
"github.com/wowsims/wotlk/sim/core"
)
var BloodBoilActionID = core.ActionID{SpellID: 49941}
func (dk *Deathknight) registerBloodBoilSpell() {
// TODO: Handle blood boil correctly -
// There is no refund and you only get RP on at least one of the effects hitting.
dk.BloodBoil = dk.RegisterSpell(core.SpellConfig{
ActionID: BloodBoilActionID,
Flags: core.SpellFlagAPL,
SpellSchool: core.SpellSchoolShadow,
ProcMask: core.ProcMaskSpellDamage,
RuneCost: core.RuneCostOptions{
BloodRuneCost: 1,
RunicPowerGain: 10,
Refundable: true,
},
Cast: core.CastConfig{
DefaultCast: core.Cast{
GCD: core.GCDDefault,
},
},
DamageMultiplier: dk.bloodyStrikesBonus(BloodyStrikesBB),
CritMultiplier: dk.bonusCritMultiplier(dk.Talents.MightOfMograine),
ThreatMultiplier: 1.0,
ApplyEffects: func(sim *core.Simulation, target *core.Unit, spell *core.Spell) {
for _, aoeTarget := range sim.Encounter.TargetUnits {
baseDamage := (sim.Roll(180, 220) + 0.06*dk.getImpurityBonus(spell)) * dk.RoRTSBonus(aoeTarget) * core.TernaryFloat64(dk.DiseasesAreActive(aoeTarget), 1.5, 1.0)
baseDamage *= sim.Encounter.AOECapMultiplier()
result := spell.CalcAndDealDamage(sim, aoeTarget, baseDamage, spell.OutcomeMagicHitAndCrit)
if aoeTarget == target {
spell.SpendRefundableCost(sim, result)
}
}
},
})
}
func (dk *Deathknight) registerDrwBloodBoilSpell() {
dk.RuneWeapon.BloodBoil = dk.RuneWeapon.RegisterSpell(core.SpellConfig{
ActionID: BloodBoilActionID,
SpellSchool: core.SpellSchoolShadow,
ProcMask: core.ProcMaskSpellDamage,
DamageMultiplier: dk.bloodyStrikesBonus(BloodyStrikesBB),
CritMultiplier: dk.bonusCritMultiplier(dk.Talents.MightOfMograine),
ThreatMultiplier: 1,
ApplyEffects: func(sim *core.Simulation, target *core.Unit, spell *core.Spell) {
for _, aoeTarget := range sim.Encounter.TargetUnits {
baseDamage := (sim.Roll(180, 220) + 0.06*dk.RuneWeapon.getImpurityBonus(spell)) * core.TernaryFloat64(dk.DrwDiseasesAreActive(aoeTarget), 1.5, 1.0)
baseDamage *= sim.Encounter.AOECapMultiplier()
spell.CalcAndDealDamage(sim, aoeTarget, baseDamage, spell.OutcomeMagicHitAndCrit)
}
},
})
}