shaman

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2026 License: MIT Imports: 8 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	SpellFlagShamanSpell = core.SpellFlagAgentReserved1
	SpellFlagShock       = core.SpellFlagAgentReserved2
	SpellFlagInstant     = core.SpellFlagAgentReserved3
	SpellFlagFocusable   = core.SpellFlagAgentReserved4
)
View Source
const (
	AirTotem int = iota
	EarthTotem
	FireTotem
	WaterTotem
)

Indexes into NextTotemDrops for self buffs

View Source
const (
	SpellMaskNone             int64 = 0
	SpellMaskFlameShockDirect int64 = 1 << iota
	SpellMaskFlameShockDot
	SpellMaskLightningBolt
	SpellMaskLightningBoltOverload
	SpellMaskChainLightning
	SpellMaskChainLightningOverload
	SpellMaskEarthShock
	SpellMaskLightningShield
	SpellMaskMagmaTotem
	SpellMaskSearingTotem
	SpellMaskFireNova
	SpellMaskStormstrike
	SpellMaskEarthShield
	SpellMaskFrostShock
	SpellMaskFlametongueWeapon
	SpellMaskFrostbrandWeapon
	SpellMaskLightningMastery
	SpellMaskShamanisticRage
	SpellMaskBasicTotem

	SpellMaskFlameShock = SpellMaskFlameShockDirect | SpellMaskFlameShockDot
	SpellMaskFire       = SpellMaskFlameShock
	SpellMaskNature     = SpellMaskLightningBolt | SpellMaskLightningBoltOverload | SpellMaskChainLightning | SpellMaskChainLightningOverload | SpellMaskEarthShock
	SpellMaskFrost      = SpellMaskFrostShock
	SpellMaskOverload   = SpellMaskLightningBoltOverload | SpellMaskChainLightningOverload
	SpellMaskShock      = SpellMaskFlameShock | SpellMaskEarthShock | SpellMaskFrostShock
	SpellMaskFireTotem  = SpellMaskMagmaTotem | SpellMaskSearingTotem
	SpellMaskTotem      = SpellMaskFireTotem | SpellMaskBasicTotem
)
View Source
const (
	DDBC_Stormstrike int = iota
	DDBC_Total
)

The slots on the shaman's attack table against a target that the debuffs parsed with spelldata.FromCaster hold.

View Source
const CastTagLightningOverload int32 = 6

The tag the results label an overload by.

Variables

View Source
var ItemSetGiftOfTheGatheringStorm = core.NewItemSet(core.ItemSet{
	ID:   502,
	Name: "Gift of the Gathering Storm",
	Slots: []proto.ItemSlot{
		proto.ItemSlot_ItemSlotBack,
		proto.ItemSlot_ItemSlotFinger1,
		proto.ItemSlot_ItemSlotFinger2,
		proto.ItemSlot_ItemSlotMainHand,
	},
	Bonuses: map[int32]core.ApplySetBonus{

		3: func(agent core.Agent, setBonusAura *core.Aura) {
			shaman := agent.(ShamanAgent).GetShaman()
			multiplier := 1 + gatheringStormChain.EffectN(1).Percent()

			setBonusAura.
				AttachMultiplicativePseudoStatBuff(&shaman.chainLightningJumpMultiplier, multiplier).
				ExposeToAPL(gatheringStormChain.ID)
		},
	},
})

Ahn'Qiraj https://www.wowhead.com/forever/item-set=502/gift-of-the-gathering-storm

View Source
var ItemSetStormcallersGarb = core.NewItemSet(core.ItemSet{
	ID:   501,
	Name: "Stormcaller's Garb",
	Slots: []proto.ItemSlot{
		proto.ItemSlot_ItemSlotHead,
		proto.ItemSlot_ItemSlotShoulder,
		proto.ItemSlot_ItemSlotChest,
		proto.ItemSlot_ItemSlotLegs,
		proto.ItemSlot_ItemSlotFeet,
	},
	Bonuses: map[int32]core.ApplySetBonus{

		3: func(agent core.Agent, setBonusAura *core.Aura) {
			shaman := agent.(ShamanAgent).GetShaman()

			wrath := shaman.RegisterAura(spelldata.AuraConfig(stormcallerWrath))
			spelldata.ParseEffects(&shaman.Character, wrath, stormcallerWrath)

			trigger := spelldata.ProcTrigger(&shaman.Character, stormcallerProc,
				func(sim *core.Simulation, _ *core.Spell, _ *core.SpellResult) {
					wrath.Activate(sim)
				})
			trigger.Name = "Stormcaller's Garb - 3PC"
			trigger.ClassSpellMask = SpellMaskLightningBolt | SpellMaskChainLightning | SpellMaskShock

			setBonusAura.AttachProcTrigger(trigger).ExposeToAPL(stormcallerProc.ID)
		},
		5: shared.ParsedSetBonus(stormcallerChainHeal),
	},
})

Ahn'Qiraj https://www.wowhead.com/forever/item-set=501/stormcallers-garb

View Source
var ItemSetTheEarthshatterer = core.NewItemSet(core.ItemSet{
	ID:    527,
	Name:  "The Earthshatterer",
	Slots: shared.TierThreeSlots,
	Bonuses: map[int32]core.ApplySetBonus{
		2: shared.ParsedSetBonus(earthshatterTotemCost),
		4: shared.ParsedSetBonus(earthshatterSpring),

		8: func(agent core.Agent, setBonusAura *core.Aura) {
			shaman := agent.(ShamanAgent).GetShaman()
			shaman.earthshattererAura = setBonusAura
			setBonusAura.ExposeToAPL(earthshatterShield.ID)
		},
	},
})

Tier 3 https://www.wowhead.com/forever/item-set=527/the-earthshatterer

View Source
var TalentTreeSizes = [3]int{16, 18, 16}

Functions

This section is empty.

Types

type APLValueTotemRemainingTime

type APLValueTotemRemainingTime struct {
	core.DefaultAPLValueImpl
	// contains filtered or unexported fields
}

func (*APLValueTotemRemainingTime) GetDuration

func (value *APLValueTotemRemainingTime) GetDuration(sim *core.Simulation) time.Duration

func (*APLValueTotemRemainingTime) String

func (value *APLValueTotemRemainingTime) String() string

func (*APLValueTotemRemainingTime) Type

type SelfBuffs

type SelfBuffs struct {
	ShieldProcrate float64
	ImbueMH        proto.ShamanImbue
	ImbueMHSwap    proto.ShamanImbue
}

Which buffs this shaman is using.

type Shaman

type Shaman struct {
	core.Character

	Talents   *proto.ShamanTalents
	SelfBuffs SelfBuffs

	Totems *proto.ShamanTotems

	// The expiration time of each totem (earth, air, fire, water).
	TotemExpirations [4]time.Duration

	Stormstrike *core.Spell

	LightningShield     *core.Spell
	LightningShieldAura *core.Aura
	WaterShieldAura     *core.Aura
	// Spends a charge of the shield that is up the way a hit taken does, for the shield proc rate option.
	ShieldSelfProc func(sim *core.Simulation)

	EarthShock []*core.Spell // One per rank in castableRanks.
	FlameShock []*core.Spell
	FrostShock []*core.Spell

	StormstrikeDebuffAuras core.AuraArray

	MagmaTotem   *core.Spell
	SearingTotem *core.Spell
	FireNova     *core.Spell

	WindfuryTotem    *core.Spell
	FlametongueTotem *core.Spell
	// Always nil: its registrar is commented out in totems.go, upstream of the fork.
	HealingStreamTotem *core.Spell

	// The cast that stood the totem in each element's slot, indexed like TotemExpirations; its aura is RelatedSelfBuff.
	TotemSpells [4]*core.Spell
	// contains filtered or unexported fields
}

Shaman represents a shaman character.

func NewShaman

func NewShaman(character *core.Character, talents string, selfBuffs SelfBuffs) *Shaman

func (*Shaman) AddRaidBuffs

func (shaman *Shaman) AddRaidBuffs(raidBuffs *proto.RaidBuffs)

func (*Shaman) ApplyTalents

func (shaman *Shaman) ApplyTalents()

func (*Shaman) ElementalDevastationCritPercent

func (shaman *Shaman) ElementalDevastationCritPercent() float64

The physical crit Elemental Devastation's buff grants at the talent's rank, 0 without the talent.

func (*Shaman) GetCharacter

func (shaman *Shaman) GetCharacter() *core.Character

func (*Shaman) GetOverloadChance

func (shaman *Shaman) GetOverloadChance() float64

The chance is the talent's ranked dummy, 10/20/30 (the logs fit rank 3, EV-0137), which the tooltip of 408438 reads as $m1; the effect's base points, 30, are what the talent's ranks replace.

func (*Shaman) Initialize

func (shaman *Shaman) Initialize()

The shocks, Lightning Bolt and Chain Lightning register every rank in castableRanks; the other spells register their highest rank only.

func (*Shaman) NewAPLValue

func (shaman *Shaman) NewAPLValue(rot *core.APLRotation, config *proto.APLValue) core.APLValue

func (*Shaman) OnEncounterStart

func (shaman *Shaman) OnEncounterStart(sim *core.Simulation)

func (*Shaman) RegisterFlametongueImbue

func (shaman *Shaman) RegisterFlametongueImbue()

436519 has no roll: every melee hit of the main hand adds its fire damage.

func (*Shaman) RegisterFrostbrandImbue

func (shaman *Shaman) RegisterFrostbrandImbue()

Enchant 1668 casts 16353 off the main hand's hits. The slow, effect 1, is not modelled.

func (*Shaman) RegisterRockbiterImbue

func (shaman *Shaman) RegisterRockbiterImbue()

Enchant 1664 puts 16313 on the main hand as an equip aura: the attack power, and the threat Spirit Weapons gives effect 2, which the row states as 0. Both ride on the imbue's aura.

func (*Shaman) RegisterWindfuryImbue

func (shaman *Shaman) RegisterWindfuryImbue()

439431 rolls its 20% on the main hand's melee hits, once per 1.5 s, and fires the rank's 16361, whose extra attacks count is how many Windfury hits follow. It rolls off the hit's cast result, and the Windfury hits follow once that hit has been dealt, in the same instant. The row hears abilities, the Windfury hits among them, but they land inside the 1.5 s the proc has just started, so they never roll.

func (*Shaman) Reset

func (shaman *Shaman) Reset(sim *core.Simulation)

type ShamanAgent

type ShamanAgent interface {
	core.Agent

	// The Shaman controlled by this Agent.
	GetShaman() *Shaman
}

Implemented by each Shaman spec.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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