Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ItemSetAgonyAndTorment = core.NewItemSet(core.ItemSet{ Name: "Agony and Torment", Bonuses: map[int32]core.ApplyEffect{ 2: func(agent core.Agent) { character := agent.GetCharacter() procAura := character.NewTemporaryStatsAura( "Agony and Torment Proc", core.ActionID{SpellID: 95762}, stats.Stats{stats.HasteRating: 1000}, time.Second*10, ) icd := core.Cooldown{ Timer: character.NewTimer(), Duration: time.Second * 45, } procAura.Icd = &icd core.MakeProcTriggerAura(&character.Unit, core.ProcTrigger{ Name: "Agony and Torment Trigger", Callback: core.CallbackOnSpellHitDealt, ProcMask: core.ProcMaskMeleeOrRanged, ActionID: core.ActionID{SpellID: 95763}, Handler: func(sim *core.Simulation, _ *core.Spell, _ *core.SpellResult) { if icd.IsReady(sim) && sim.Proc(.10, "Agony and Torment Proc") { icd.Use(sim) procAura.Activate(sim) } }, }) }, }, })
Functions ¶
func RegisterIgniteEffect ¶ added in v0.0.88
func RegisterIgniteEffect(unit *core.Unit, config IgniteConfig) *core.Spell
Types ¶
type IgniteConfig ¶ added in v0.0.88
type IgniteConfig struct { ActionID core.ActionID DisableCastMetrics bool DotAuraLabel string DotAuraTag string ProcTrigger core.ProcTrigger // Ignores the Handler field and creates a custom one, but uses all others. DamageCalculator IgniteDamageCalculator IncludeAuraDelay bool // "munching" and "free roll-over" interactions }
type IgniteDamageCalculator ¶ added in v0.0.88
type IgniteDamageCalculator func(result *core.SpellResult) float64
Takes in the SpellResult for the triggering spell, and returns the damage per tick of a *fresh* Ignite triggered by that spell. Roll-over damage calculations for existing Ignites are handled internally.
Click to show internal directories.
Click to hide internal directories.