druid

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2026 License: MIT Imports: 12 Imported by: 1 module, 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 BearRageIsTwoHanded = true

A bear's auto attack takes the two-hander rage factor whatever it holds, 4.5 rage per second of the bear's 2.5 second swing (EV-0037). No druid row states a rage multiplier of its own.

Variables

View Source
var ItemSetChampionsRefuge = core.NewItemSet(core.ItemSet{
	ID:    539,
	Name:  "Champion's Refuge",
	Slots: sixPieceSlots,
	Bonuses: map[int32]core.ApplySetBonus{
		2: parsedSetBonus(pvpRefuge),
		6: parsedSetBonus(pvpStamina),
	},
})
View Source
var ItemSetChampionsWildhide = core.NewItemSet(core.ItemSet{
	ID:    2080,
	Name:  "Champion's Wildhide",
	Slots: sixPieceSlots,
	Bonuses: map[int32]core.ApplySetBonus{
		2: parsedSetBonus(pvpWildhide),
		6: parsedSetBonus(pvpStamina),
	},
})
View Source
var ItemSetFieldMarshalsRefuge = core.NewItemSet(core.ItemSet{
	ID:    2077,
	Name:  "Field Marshal's Refuge",
	Slots: sixPieceSlots,
	Bonuses: map[int32]core.ApplySetBonus{
		2: parsedSetBonus(pvpStamina),
		6: parsedSetBonus(pvpRefuge),
	},
})
View Source
var ItemSetFieldMarshalsWildhide = core.NewItemSet(core.ItemSet{
	ID:    2078,
	Name:  "Field Marshal's Wildhide",
	Slots: sixPieceSlots,
	Bonuses: map[int32]core.ApplySetBonus{
		2: parsedSetBonus(pvpStamina),
		6: parsedSetBonus(pvpWildhide),
	},
})
View Source
var ItemSetGrovekeeperEclipse = core.NewItemSet(core.ItemSet{
	ID:    2114,
	Name:  "Grovekeeper Eclipse",
	Slots: sixPieceSlots,
	Bonuses: map[int32]core.ApplySetBonus{
		2: parsedSetBonus(spelldata.MustFind(1300940)),
		4: func(_ core.Agent, setBonusAura *core.Aura) {

			row := spelldata.MustFind(1301073)
			setBonusAura.
				AttachMobTypeBonusStats(stats.Stats{stats.SpellDamage: row.EffectN(1).BaseValue()}, spelldata.MobTypes(row.EffectN(1).Misc)...).
				ExposeToAPL(row.ID)
		},
		5: parsedSetBonus(spelldata.MustFind(1301242)),
	},
})

Tier 1 - Balance https://www.wowhead.com/forever/item-set=2114/grovekeeper-eclipse

The game files ship four of the six pieces (shoulders, hands, legs, feet), so the 5-piece bonus waits on the head and chest the ItemSet row lists. The 3-piece bonus takes 15 sec off Nature's Grasp's cooldown, which the sim does not cast.

View Source
var ItemSetGrovekeeperFerocity = core.NewItemSet(core.ItemSet{
	ID:    2115,
	Name:  "Grovekeeper Ferocity",
	Slots: sixPieceSlots,
	Bonuses: map[int32]core.ApplySetBonus{
		2: shared.ParsedSetBonus(spelldata.MustFind(1300934)),
		4: shared.ParsedSetBonus(spelldata.MustFind(1301075)),
		5: shared.ParsedSetBonus(spelldata.MustFind(1301247)),
	},
})

Tier 1 - Feral https://www.wowhead.com/forever/item-set=2115/grovekeeper-ferocity

The game files ship four of the six pieces (shoulders, hands, legs, feet), so the 5-piece bonus waits on the head and chest the ItemSet row lists. The 3-piece bonus lets Hibernate be cast in Cat Form, which the sim does not cast.

View Source
var ItemSetGrovekeeperRage = core.NewItemSet(core.ItemSet{
	ID:    2113,
	Name:  "Grovekeeper Rage",
	Slots: sixPieceSlots,
	Bonuses: map[int32]core.ApplySetBonus{
		2: shared.ParsedSetBonus(spelldata.MustFind(1300942)),
		4: shared.ParsedSetBonus(spelldata.MustFind(1301076)),
	},
})

Tier 1 - Guardian https://www.wowhead.com/forever/item-set=2113/grovekeeper-rage

The game files ship four of the six pieces (shoulders, hands, legs, feet), so the 5-piece bonus waits on the head and chest the ItemSet row lists. The 3-piece bonus lets Rebirth be cast in Bear Form, and the 5-piece takes 15 sec off Berserk; the sim casts neither.

View Source
var ItemSetHaruspexsGarb = core.NewItemSet(core.ItemSet{
	ID:   479,
	Name: "Haruspex's Garb",
	Slots: []proto.ItemSlot{
		proto.ItemSlot_ItemSlotNeck,
		proto.ItemSlot_ItemSlotChest,
		proto.ItemSlot_ItemSlotWrist,
		proto.ItemSlot_ItemSlotWaist,
		proto.ItemSlot_ItemSlotTrinket1,
		proto.ItemSlot_ItemSlotTrinket2,
	},
	Bonuses: map[int32]core.ApplySetBonus{
		2: parsedSetBonus(spelldata.MustFind(21618)),
		3: parsedSetBonus(spelldata.MustFind(24479)),
		5: parsedSetBonus(spelldata.MustFind(24480)),
	},
})

Zul'Gurub https://www.wowhead.com/forever/item-set=479/haruspexs-garb

View Source
var ItemSetLieutenantCommandersRefuge = core.NewItemSet(core.ItemSet{
	ID:    551,
	Name:  "Lieutenant Commander's Refuge",
	Slots: sixPieceSlots,
	Bonuses: map[int32]core.ApplySetBonus{
		2: parsedSetBonus(pvpRefuge),
		6: parsedSetBonus(pvpStamina),
	},
})
View Source
var ItemSetLieutenantCommandersWildhide = core.NewItemSet(core.ItemSet{
	ID:    2081,
	Name:  "Lieutenant Commander's Wildhide",
	Slots: sixPieceSlots,
	Bonuses: map[int32]core.ApplySetBonus{
		2: parsedSetBonus(pvpWildhide),
		6: parsedSetBonus(pvpStamina),
	},
})
View Source
var ItemSetSymbolsOfUnendingLife = core.NewItemSet(core.ItemSet{
	ID:   494,
	Name: "Symbols of Unending Life",
	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) {

			character := agent.GetCharacter()
			row := spelldata.MustFind(26107)
			setBonusAura.ExposeToAPL(row.ID)
			trigger := spelldata.ProcTrigger(character, row, nil)
			trigger.Handler = shared.FiredSpellHandler(character, trigger.ActionID, row)
			if trigger.Handler == nil {

				return
			}
			trigger.Name = "Symbols of Unending Life - 3PC"
			trigger.Outcome = core.OutcomeMiss | core.OutcomeDodge | core.OutcomeBlock | core.OutcomeParry
			trigger.RequireDamageDealt = false
			trigger.ExtraCondition = func(_ *core.Simulation, spell *core.Spell, _ *core.SpellResult) bool {
				return spellData.Rip.Contains(spell) || spellData.FerociousBite.Contains(spell)
			}

			setBonusAura.AttachProcTrigger(trigger)
		},
	},
})

Ruins of Ahn'Qiraj https://www.wowhead.com/forever/item-set=494/symbols-of-unending-life

View Source
var ItemSetWarlordsRefuge = core.NewItemSet(core.ItemSet{
	ID:    2076,
	Name:  "Warlord's Refuge",
	Slots: sixPieceSlots,
	Bonuses: map[int32]core.ApplySetBonus{
		2: parsedSetBonus(pvpStamina),
		6: parsedSetBonus(pvpRefuge),
	},
})
View Source
var ItemSetWarlordsWildhide = core.NewItemSet(core.ItemSet{
	ID:    2079,
	Name:  "Warlord's Wildhide",
	Slots: sixPieceSlots,
	Bonuses: map[int32]core.ApplySetBonus{
		2: parsedSetBonus(pvpStamina),
		6: parsedSetBonus(pvpWildhide),
	},
})
View Source
var StarfireRankMap = spelldata.Ranked(spellData.Starfire.Rank(6).ID, spellData.Starfire.Rank(7).ID)

The top rank, 7, and the cheaper rank 6, which an APL can cast in its place.

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

Functions

This section is empty.

Types

type APLValueDruidBleedIsActive

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

func (*APLValueDruidBleedIsActive) GetBool

func (value *APLValueDruidBleedIsActive) GetBool(_ *core.Simulation) bool

func (*APLValueDruidBleedIsActive) String

func (value *APLValueDruidBleedIsActive) String() string

func (*APLValueDruidBleedIsActive) Type

type APLValueDruidExcessEnergy

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

func (*APLValueDruidExcessEnergy) GetFloat

func (value *APLValueDruidExcessEnergy) GetFloat(sim *core.Simulation) float64

func (*APLValueDruidExcessEnergy) String

func (value *APLValueDruidExcessEnergy) String() string

func (*APLValueDruidExcessEnergy) Type

type Druid

type Druid struct {
	core.Character
	SelfBuffs

	Talents *proto.DruidTalents

	StartingForm DruidForm

	CannotShredTarget bool
	// Another raid member keeps a bleed on the target, so Rend and Tear always applies.
	AssumeBleedActive bool

	// Wolfshead Helm (8345): energy added to Shifting Power, and the share added to Enrage's instant rage.
	WolfsheadEnergyBonus float64
	WolfsheadEnrageBonus float64

	MHAutoSpell *core.Spell

	Barkskin             *DruidSpell
	Bash                 *DruidSpell
	ChallengingRoar      *DruidSpell
	Claw                 *DruidSpell
	Cower                *DruidSpell
	Dash                 *DruidSpell
	DemoralizingRoar     *DruidSpell
	FaerieFire           *DruidSpell
	FeralCharge          *DruidSpell
	FerociousBite        *DruidSpell
	Enrage               *DruidSpell
	EnrageAura           *core.Aura
	FrenziedRegeneration *DruidSpell
	Growl                *DruidSpell
	Hurricane            *DruidSpell
	Innervate            *DruidSpell
	InsectSwarm          *DruidSpell
	Lacerate             *DruidSpell
	Maul                 *DruidSpell
	Moonfire             *DruidSpell
	NaturesSwiftness     *DruidSpell
	Pounce               *DruidSpell
	PounceBleed          *DruidSpell
	PrimalBite           *DruidSpell
	Prowl                *DruidSpell
	Shadowmeld           *DruidSpell
	Rake                 *DruidSpell
	Ravage               *DruidSpell
	Rejuvenation         *DruidSpell
	Rip                  *DruidSpell
	ShiftingPower        *DruidSpell
	Shred                *DruidSpell
	Starfire             []*DruidSpell
	Thorns               *DruidSpell
	Swipe                *DruidSpell
	Wrath                *DruidSpell

	CatForm      *DruidSpell
	BearForm     *DruidSpell
	DireBearForm *DruidSpell
	MoonkinForm  *DruidSpell

	BearFormAura             *core.Aura
	CatFormAura              *core.Aura
	ClearcastingAura         *core.Aura
	OmenOfClarityAura        *core.Aura // The proc trigger, whose ICD says when Omen of Clarity can proc again.
	DireBearFormAura         *core.Aura
	DashAura                 *core.Aura
	FeralChargeMovementAura  *core.Aura
	FrenziedRegenerationAura *core.Aura
	DemoralizingRoarAuras    core.AuraArray
	FaerieFireAuras          core.AuraArray
	MoonkinFormAura          *core.Aura
	ProwlAura                *core.Aura
	ShadowmeldAura           *core.Aura
	// contains filtered or unexported fields
}

func New

func New(char *core.Character, form DruidForm, selfBuffs SelfBuffs, talents string) *Druid

func (*Druid) AddRaidBuffs

func (druid *Druid) AddRaidBuffs(raidBuffs *proto.RaidBuffs)

func (*Druid) ApplyTalents

func (druid *Druid) ApplyTalents()

func (*Druid) BehindTarget

func (druid *Druid) BehindTarget() bool

Whether Shred, Ravage and Pounce can land: the druid is behind the target and the target can be shredded.

func (*Druid) ClearForm

func (druid *Druid) ClearForm(sim *core.Simulation)

func (*Druid) GetBearWeapon

func (druid *Druid) GetBearWeapon() core.Weapon

func (*Druid) GetCatWeapon

func (druid *Druid) GetCatWeapon() core.Weapon

func (*Druid) GetCharacter

func (druid *Druid) GetCharacter() *core.Character

func (*Druid) InForm

func (druid *Druid) InForm(form DruidForm) bool

func (*Druid) Initialize

func (druid *Druid) Initialize()

func (*Druid) NewAPLValue

func (druid *Druid) NewAPLValue(rot *core.APLRotation, config *proto.APLValue) core.APLValue

func (*Druid) OnEncounterStart

func (druid *Druid) OnEncounterStart(sim *core.Simulation)

func (*Druid) RegisterBalanceSpells

func (druid *Druid) RegisterBalanceSpells()

func (*Druid) RegisterBaselineSpells

func (druid *Druid) RegisterBaselineSpells()

func (*Druid) RegisterBearFormAura

func (druid *Druid) RegisterBearFormAura()

func (*Druid) RegisterCasterSpells

func (druid *Druid) RegisterCasterSpells()

The feral specs take Thorns from the buff settings, so only the caster specs register it.

func (*Druid) RegisterCatFormAura

func (druid *Druid) RegisterCatFormAura()

func (*Druid) RegisterFeralSpells

func (druid *Druid) RegisterFeralSpells()

func (*Druid) RegisterMoonkinFormAura

func (druid *Druid) RegisterMoonkinFormAura()

func (*Druid) RegisterMoonkinFormSpell

func (druid *Druid) RegisterMoonkinFormSpell()

func (*Druid) RegisterSpell

func (druid *Druid) RegisterSpell(config core.SpellConfig) *DruidSpell

func (*Druid) Reset

func (druid *Druid) Reset(_ *core.Simulation)

func (*Druid) TryMaul

func (druid *Druid) TryMaul(sim *core.Simulation, mhSwingSpell *core.Spell) *core.Spell

type DruidAgent

type DruidAgent interface {
	GetDruid() *Druid
}

Agent is a generic way to access underlying druid on any of the agents (for example balance druid.)

type DruidForm

type DruidForm uint8
const (
	Humanoid DruidForm = 1 << iota
	Bear
	Cat
	Moonkin
	Tree
	DireBear
)

func (DruidForm) Matches

func (form DruidForm) Matches(other DruidForm) bool

type DruidSpell

type DruidSpell struct {
	*core.Spell
}

func (*DruidSpell) CanCast

func (ds *DruidSpell) CanCast(sim *core.Simulation, target *core.Unit) bool

func (*DruidSpell) IsEqual

func (ds *DruidSpell) IsEqual(s *core.Spell) bool

func (*DruidSpell) IsReady

func (ds *DruidSpell) IsReady(sim *core.Simulation) bool

type SelfBuffs

type SelfBuffs struct {
	InnervateTarget *proto.UnitReference
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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