cata

package
v0.0.61 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 17, 2024 License: MIT Imports: 6 Imported by: 0

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.MeleeHaste: 1000, stats.SpellHaste: 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

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL