forked from wowsims/wotlk
-
Notifications
You must be signed in to change notification settings - Fork 2
/
hammer_of_wrath.go
51 lines (44 loc) · 1.6 KB
/
hammer_of_wrath.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
package paladin
import (
"time"
"github.com/Tereneckla/wotlk/sim/core"
"github.com/Tereneckla/wotlk/sim/core/proto"
)
func (paladin *Paladin) registerHammerOfWrathSpell() {
paladin.HammerOfWrath = paladin.RegisterSpell(core.SpellConfig{
ActionID: core.ActionID{SpellID: 27180},
SpellSchool: core.SpellSchoolHoly,
ProcMask: core.ProcMaskMeleeMHSpecial,
Flags: core.SpellFlagMeleeMetrics | core.SpellFlagAPL,
ManaCost: core.ManaCostOptions{
BaseCost: 0.12 * core.TernaryFloat64(paladin.HasMajorGlyph(proto.PaladinMajorGlyph_GlyphOfHammerOfWrath), 0, 1),
Multiplier: 1 - 0.02*float64(paladin.Talents.Benediction),
},
Cast: core.CastConfig{
DefaultCast: core.Cast{
GCD: core.GCDDefault,
},
IgnoreHaste: true,
CD: core.Cooldown{
Timer: paladin.NewTimer(),
Duration: time.Second * 6,
},
},
ExtraCastCondition: func(sim *core.Simulation, target *core.Unit) bool {
return sim.IsExecutePhase20()
},
BonusCritRating: 25 * float64(paladin.Talents.SanctifiedWrath) * core.CritRatingPerCritChance,
DamageMultiplierAdditive: 1 +
paladin.getItemSetLightbringerBattlegearBonus4() +
paladin.getItemSetAegisBattlegearBonus2(),
DamageMultiplier: 1,
CritMultiplier: paladin.MeleeCritMultiplier(),
ThreatMultiplier: 1,
ApplyEffects: func(sim *core.Simulation, target *core.Unit, spell *core.Spell) {
baseDamage := sim.Roll(740, 816) +
.15*spell.SpellPower() +
.15*spell.MeleeAttackPower()
spell.CalcAndDealDamage(sim, target, baseDamage, spell.OutcomeMeleeSpecialNoBlockDodgeParry)
},
})
}