-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #867 from mlizard32/master
Adding p4 features in relation to holy shock
- Loading branch information
Showing
9 changed files
with
302 additions
and
182 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
package paladin | ||
|
||
import ( | ||
"time" | ||
|
||
"github.com/wowsims/sod/sim/core" | ||
) | ||
|
||
func (paladin *Paladin) registerAvengingWrath() { | ||
actionID := core.ActionID{SpellID: 407788} | ||
|
||
AvengingWrathAura := paladin.RegisterAura(core.Aura{ | ||
Label: "Avenging Wrath", | ||
ActionID: actionID, | ||
Duration: time.Second * 20, | ||
OnGain: func(aura *core.Aura, sim *core.Simulation) { | ||
aura.Unit.PseudoStats.DamageDealtMultiplier *= 1.2 | ||
}, | ||
OnExpire: func(aura *core.Aura, sim *core.Simulation) { | ||
aura.Unit.PseudoStats.DamageDealtMultiplier /= 1.2 | ||
}, | ||
}) | ||
core.RegisterPercentDamageModifierEffect(AvengingWrathAura, 1.2) | ||
|
||
AvengingWrath := paladin.RegisterSpell(core.SpellConfig{ | ||
ActionID: actionID, | ||
Flags: core.SpellFlagNoOnCastComplete | core.SpellFlagAPL, | ||
|
||
ManaCost: core.ManaCostOptions{ | ||
BaseCost: 0.08, | ||
}, | ||
Cast: core.CastConfig{ | ||
CD: core.Cooldown{ | ||
Timer: paladin.NewTimer(), | ||
Duration: time.Minute*3, | ||
}, | ||
|
||
}, | ||
ApplyEffects: func(sim *core.Simulation, _ *core.Unit, _ *core.Spell) { | ||
AvengingWrathAura.Activate(sim) | ||
}, | ||
}) | ||
|
||
paladin.AddMajorCooldown(core.MajorCooldown{ | ||
Spell: AvengingWrath, | ||
Type: core.CooldownTypeDPS, | ||
|
||
}) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.