forked from wowsims/wotlk
-
Notifications
You must be signed in to change notification settings - Fork 2
/
flash_heal.go
45 lines (38 loc) · 1.54 KB
/
flash_heal.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
package priest
import (
"time"
"github.com/Tereneckla/wotlk/sim/core"
"github.com/Tereneckla/wotlk/sim/core/proto"
)
func (priest *Priest) registerFlashHealSpell() {
spellCoeff := 0.8057 + 0.04*float64(priest.Talents.EmpoweredHealing)
priest.FlashHeal = priest.RegisterSpell(core.SpellConfig{
ActionID: core.ActionID{SpellID: 25235},
SpellSchool: core.SpellSchoolHoly,
ProcMask: core.ProcMaskSpellHealing,
Flags: core.SpellFlagHelpful | core.SpellFlagAPL,
ManaCost: core.ManaCostOptions{
BaseCost: 0.18,
Multiplier: 1 -
.05*float64(priest.Talents.ImprovedFlashHeal) -
core.TernaryFloat64(priest.HasMajorGlyph(proto.PriestMajorGlyph_GlyphOfFlashHeal), .1, 0),
},
Cast: core.CastConfig{
DefaultCast: core.Cast{
GCD: core.GCDDefault,
CastTime: time.Millisecond * 1500,
},
},
BonusCritRating: float64(priest.Talents.HolySpecialization) * 1 * core.CritRatingPerCritChance,
DamageMultiplier: 1 *
(1 + .02*float64(priest.Talents.SpiritualHealing)) *
(1 + .01*float64(priest.Talents.BlessedResilience)) *
(1 + .02*float64(priest.Talents.FocusedPower)),
CritMultiplier: priest.DefaultHealingCritMultiplier(),
ThreatMultiplier: 1 - []float64{0, .07, .14, .20}[priest.Talents.SilentResolve],
ApplyEffects: func(sim *core.Simulation, target *core.Unit, spell *core.Spell) {
baseHealing := sim.Roll(1101+5.2*3, 1279+52*3) + spellCoeff*spell.HealingPower(target)
spell.CalcAndDealHealing(sim, target, baseHealing, spell.OutcomeHealingCrit)
},
})
}