buffs

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: 9 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

Overview

Package buffs holds the raid buffs and debuffs: the constructors tools/database/gen_spelldata generates from tools/database/buffmanifest, the drivers that add what the game files do not state, and the hand-written auras that share categories with them. They sit above sim/core so that they can read the spell store, which imports sim/core, so core cannot call them: init registers them as core's buff hooks, and sim/common imports the package so that every sim links it.

Index

Constants

View Source
const DamageShieldSpellPowerCoefficient = 1.5 / 3.5 / 3 * 0.42

Retribution Aura and Thorns scale with their caster's spell power in Forever even though their game files rows carry no coefficient (every rank states EffectBonusCoefficient 0, and the damage still moves with spell power in game). The coefficient is the 1.5 s cast-time floor over 3.5, the AoE divisor because the shield hits every attacker, and the 0.42 penalty for the aura effect: 6% of spell power, the ratio Blizzard states for Retribution Aura and the one measured for Thorns (EV-0067).

View Source
const JudgementAuraTag = "JudgementAura"

Every judgement debuff a paladin puts up carries the tag, so an effect that refreshes "all Judgement effects on the target" can find them.

Variables

View Source
var (
	JudgementOfTheCrusaderMaxRank = JudgementRank{SpellID: judgementOfTheCrusaderSpell.ID,
		Value: amount(judgementOfTheCrusaderSpell.Effect(dbcenums.A_MOD_DAMAGE_TAKEN, int32(core.SpellSchoolHoly)))}
	JudgementOfLightMaxRank  = JudgementRank{SpellID: judgementOfLightSpell.ID, HealID: judgementOfLightHealID}
	JudgementOfWisdomMaxRank = JudgementRank{SpellID: judgementOfWisdomSpell.ID,
		Value: amount(spelldata.MustFind(judgementOfWisdomManaID).EnergizeEffect())}
)
View Source
var AdmiralsHatCategory = "AdmiralsHat"

Admiral's Hat

View Source
var ArcaneIntellectCategory = "StatBuff"

Arcane Intellect

View Source
var ArmorShatterCategory = "MinorArmorReduction"

Armor Shatter

View Source
var AtkSpeedReductionCategory = core.ExclusiveStatCategory(ThunderClapCategory, "MeleeSpeedMultiplier", true)

The slot every slow on attacks bids in: the one Thunder Clap's melee haste takes, so only the strongest applies.

View Source
var BattleShoutCategory = "BattleShout"

Battle Shout

View Source
var BattleShoutT2Bonus = spelldata.MustFind(23563).EffectN(1).BaseValue()

Three pieces of Battlegear of Wrath are worth 30 more attack power on Battle Shout: item set 218's ItemSetSpell at three pieces is 23563, which adds a flat 30 to every effect of the Battle Shout family.

View Source
var BloodPactCategory = "BloodPact"

Blood Pact

View Source
var ConcentrationAuraCategory = "ConcentrationAura"

Concentration Aura Left out: effect 3 A_MECHANIC_DURATION_MOD(232) misc 26 Left out: effect 4 A_MECHANIC_DURATION_MOD(232) misc 9

View Source
var CurseOfElementsCategory = "CurseOfElements"

Curse of the Elements

View Source
var CurseOfRecklessnessCategory = "MinorArmorReduction"

Curse of Recklessness Left out: effect 1 A_PREVENTS_FLEEING(92) misc 0

View Source
var CurseOfWeaknessCategory = "CurseOfWeakness"

Curse of Weakness

View Source
var DarkInspirationCategory = "DarkInspiration"

Dark Inspiration

View Source
var DarkspearCategory = "Darkspear"

Darkspear

View Source
var DemoralizingRoarCategory = "Demoralizing"

Demoralizing Roar

View Source
var DemoralizingScreechCategory = "Demoralizing"

Demoralizing Screech

View Source
var DemoralizingShoutCategory = "Demoralizing"

Demoralizing Shout

View Source
var DevotionAuraCategory = "DevotionAura"

Devotion Aura

View Source
var DustCloudCategory = "MinorArmorReduction"

Dust Cloud

View Source
var ExposeArmorCategory = "MajorArmorReduction"

Expose Armor

View Source
var FaerieFireCategory = "MinorArmorReduction"

Faerie Fire Left out: effect 2 A_DISPEL_IMMUNITY(41) misc 6 Left out: effect 3 A_DISPEL_IMMUNITY(41) misc 5

View Source
var FireResistanceAuraCategory = "FireResistanceAura"

Fire Resistance Aura

View Source
var FlametongueTotemCategory = "FlametongueTotem"

Flametongue Totem Left out: effect 1 A_PROC_TRIGGER_SPELL(42) misc 0

View Source
var FrostResistanceAuraCategory = "FrostResistanceAura"

Frost Resistance Aura

View Source
var FuriousHowlCategory = "BattleShout"

Furious Howl

View Source
var GiftOfArthasCategory = "GiftOfArthasAura"

Gift of Arthas

View Source
var GraceOfAirTotemCategory = "GraceOfAirTotem"

Grace of Air Totem

View Source
var HeadmastersChargeCategory = "HeadmastersCharge"

Headmaster's Charge

View Source
var HexOfWeaknessCategory = "Demoralizing"

Hex of Weakness

View Source
var HuntersMarkCategory = "HuntersMark"

Hunter's Mark Left out: effect 1 A_MOD_STALKED(68) misc 0

View Source
var InnervatesCategory = "Innervate"

Innervates

View Source
var InsectSwarmCategory = "HitChanceReduction"

Insect Swarm Left out: effect 1 A_PERIODIC_DAMAGE(3) misc 0

View Source
var LeaderOfThePackCategory = "RaidCrit"

Leader of the Pack

View Source
var LibramOfFervorJudgementBonus = spelldata.MustFind(28852).
	Effect(dbcenums.A_ADD_FLAT_MODIFIER, int32(dbcenums.SPELLMOD_ALL_EFFECTS)).BaseValue()

Libram of Fervor's equip spell 28852 raises the Holy damage increase of the paladin's Judgement of the Crusader by a flat amount on every effect of the judgement. Its other effect raises Seal of the Crusader's attack power, which the raid's debuff does not carry.

View Source
var ManaSpringTotemCategory = "ManaSpringTotem"

Mana Spring Totem

View Source
var ManaTideTotemsCategory = "ManaTideTotem"

Mana Tide Totem

View Source
var MoonkinAuraCategory = "RaidCrit"

Moonkin Aura

View Source
var PaladinAuraCategory = "PaladinAura"

The category the rows that name it join without an effect of their own, so that a player's own copy of one of them shuts the others off.

View Source
var PowerInfusionsCategory = "PowerInfusion"

Power Infusions

View Source
var PowerWordFortitudeCategory = "StatBuff"

Power Word: Fortitude

View Source
var PrayerOfSpiritCategory = "StatBuff"

Prayer of Spirit

View Source
var PunctureArmorCategory = "MinorArmorReduction"

Puncture Armor

View Source
var RetributionAuraCategory = "RetributionAura"

Retribution Aura

View Source
var RetributionAuraMaxRank = PaladinAuraRank{SpellID: 10301, Value: RetributionAuraValue(0)}
View Source
var ScorpidStingCategory = "HitChanceReduction"

Scorpid Sting

View Source
var ShadowResistanceAuraCategory = "ShadowResistanceAura"

Shadow Resistance Aura

View Source
var StoneskinTotemCategory = "StoneskinTotem"

Stoneskin Totem

View Source
var StrengthOfEarthTotemCategory = "StrengthOfEarthTotem"

Strength of Earth Totem

View Source
var SunderArmorCategory = "MajorArmorReduction"

Sunder Armor

View Source
var ThornsCategory = "Thorns"

Thorns

View Source
var ThunderClapCategory = "AtkSpdReduction"

Thunder Clap

View Source
var VindicationCategory = "Demoralizing"

Vindication

View Source
var WindfuryTotemCategory = "WindfuryTotem"

Windfury Totem Left out: effect 1 A_PROC_TRIGGER_SPELL(42) misc 0 Left out: effect 2 A_DUMMY(4) misc 0

Functions

func AddGeneratedFlatBonus

func AddGeneratedFlatBonus(aura *core.Aura, stat stats.Stat, base float64, bonus float64)

AddGeneratedFlatBonus raises a generated buff the game files state as worth base to base+bonus, in both of the numbers a buff that does not stack keeps apart: what it applies and what it bids for its category. Three pieces of the warrior's tier 2 set are worth 30 more attack power on Battle Shout, and a shout worth 169 has to outbid one worth 139. The aura grants the extra amount for exactly as long as it holds the category, because a category that holds one aura at a time deactivates the copy it outbids.

The aura belongs to the unit rather than to whoever raised it, so two party members wearing the same set ask for the same total and get it once: a call against an aura that already carries the bonus does nothing. One that finds some other amount there is reading a different buff's base and says so.

The category has to hold one aura at a time. That is what makes attaching the extra amount to the aura the same thing as attaching it to the effect: the copy that loses the category is deactivated outright, so the aura is up exactly while its effect is the one applying.

It writes Priority directly, which is only safe before the fight: an effect that is already active has to go through SetPriority to re-apply what it holds. Every caller runs while the character is being built.

func AdmiralsHatDuration

func AdmiralsHatDuration(talentPoints int32) time.Duration

func AdmiralsHatValue

func AdmiralsHatValue(talentPoints int32) float64

func ApplyInspiration

func ApplyInspiration(character *core.Character, uptime float64)

func ArcaneIntellectDuration

func ArcaneIntellectDuration(talentPoints int32) time.Duration

func ArcaneIntellectValue

func ArcaneIntellectValue(talentPoints int32) float64

func ArmorShatterDuration

func ArmorShatterDuration(talentPoints int32) time.Duration

func ArmorShatterValue

func ArmorShatterValue(talentPoints int32) float64

func AspectOfTheWildDuration

func AspectOfTheWildDuration(talentPoints int32) time.Duration

func AspectOfTheWildValue

func AspectOfTheWildValue(talentPoints int32) float64

func AtieshDruidDuration

func AtieshDruidDuration(talentPoints int32) time.Duration

func AtieshDruidValue

func AtieshDruidValue(talentPoints int32) float64

func AtieshMageDuration

func AtieshMageDuration(talentPoints int32) time.Duration

func AtieshMageValue

func AtieshMageValue(talentPoints int32) float64

func AtieshPriestDuration

func AtieshPriestDuration(talentPoints int32) time.Duration

func AtieshPriestValue

func AtieshPriestValue(talentPoints int32) float64

func AtieshWarlockDuration

func AtieshWarlockDuration(talentPoints int32) time.Duration

func AtieshWarlockValue

func AtieshWarlockValue(talentPoints int32) float64

func AtkSpeedReductionEffect

func AtkSpeedReductionEffect(aura *core.Aura, speedMultiplier float64) *core.ExclusiveEffect

func AttachDamageShield

func AttachDamageShield(aura *core.Aura, school core.SpellSchool, damage float64, bonusCoefficient float64, hits core.ProcMask, lockout time.Duration)

The same damage shield on an aura that already exists, live while the aura is up: an item's buff whose row states a damage shield beside its other effects. The spell that deals the damage takes the aura's action id with its tag raised by 2. hits narrows the physical hits the shield answers to the ones the row's proc flags name; ProcMaskUnknown answers every one. lockout is the time the shield waits between two reflections; 0 answers every hit.

func AttachJudgementOfLightHeal

func AttachJudgementOfLightHeal(aura *core.Aura, caster *core.Unit, rank JudgementRank) *core.Aura

Whoever lands a damaging melee hit on the judged target rolls the row's chance to be healed for the rank's amount. The caster's proc chance mods, e.g. Improved Judgement of Light, raise that chance; the raid's copy has no caster. The heal is the attacker's own spell, so its threat goes to the attacker.

func AttachJudgementOfWisdomMana

func AttachJudgementOfWisdomMana(aura *core.Aura, rank JudgementRank) *core.Aura

Whoever lands a hit the row's proc flags name on the judged target (melee, ranged or a direct spell) rolls the row's chance to regain the rank's mana. A miss, dodge or parry rolls nothing, and neither do periodic ticks or damage shields. A landed hit that deals no damage still rolls, so Serpent Sting's application reaches the judgement: the trigger leaves out the damage requirement the decode gives every row.

func BattleShoutDuration

func BattleShoutDuration(talentPoints int32) time.Duration

func BattleShoutRankValue

func BattleShoutRankValue(rank *spelldata.Spell) float64

The attack power one rank grants, before the tier 2 set's bonus.

func BattleShoutValue

func BattleShoutValue(talentPoints int32) float64

func BloodPactDuration

func BloodPactDuration(talentPoints int32) time.Duration

func BloodPactValue

func BloodPactValue(talentPoints int32) float64

func CastSpeedReductionEffect

func CastSpeedReductionEffect(aura *core.Aura, castTimeMultiplier float64) *core.ExclusiveEffect

A slow on casts alone, in the category Slow's cast and ranged slow takes: only the strongest applies.

func ConcentrationAuraDuration

func ConcentrationAuraDuration(talentPoints int32) time.Duration

func ConcentrationAuraValue

func ConcentrationAuraValue(talentPoints int32) float64

func CurseOfElementsDuration

func CurseOfElementsDuration(talentPoints int32) time.Duration

func CurseOfElementsValue

func CurseOfElementsValue(talentPoints int32) float64

func CurseOfRecklessnessDuration

func CurseOfRecklessnessDuration(talentPoints int32) time.Duration

func CurseOfRecklessnessValue

func CurseOfRecklessnessValue(talentPoints int32) float64

func CurseOfWeaknessDuration

func CurseOfWeaknessDuration(talentPoints int32) time.Duration

func CurseOfWeaknessValue

func CurseOfWeaknessValue(talentPoints int32) float64

func DarkInspirationDuration

func DarkInspirationDuration(talentPoints int32) time.Duration

func DarkInspirationValue

func DarkInspirationValue(talentPoints int32) float64

func DarkspearDuration

func DarkspearDuration(talentPoints int32) time.Duration

func DarkspearValue

func DarkspearValue(talentPoints int32) float64

func DemoralizingRoarDuration

func DemoralizingRoarDuration(talentPoints int32) time.Duration

func DemoralizingRoarValue

func DemoralizingRoarValue(talentPoints int32) float64

func DemoralizingScreechDuration

func DemoralizingScreechDuration(talentPoints int32) time.Duration

func DemoralizingScreechValue

func DemoralizingScreechValue(talentPoints int32) float64

func DemoralizingShoutDuration

func DemoralizingShoutDuration(talentPoints int32) time.Duration

func DemoralizingShoutValue

func DemoralizingShoutValue(talentPoints int32) float64

func DevotionAuraDuration

func DevotionAuraDuration(talentPoints int32) time.Duration

func DevotionAuraValue

func DevotionAuraValue(talentPoints int32) float64

func DustCloudDuration

func DustCloudDuration(talentPoints int32) time.Duration

func DustCloudValue

func DustCloudValue(talentPoints int32) float64

func ExposeArmorDuration

func ExposeArmorDuration(talentPoints int32) time.Duration

func ExposeArmorValue

func ExposeArmorValue(talentPoints int32) float64

func FaerieFireDuration

func FaerieFireDuration(talentPoints int32) time.Duration

func FaerieFireValue

func FaerieFireValue(talentPoints int32) float64

func FireResistanceAuraDuration

func FireResistanceAuraDuration(talentPoints int32) time.Duration

func FireResistanceAuraValue

func FireResistanceAuraValue(talentPoints int32) float64

func FireResistanceTotemDuration

func FireResistanceTotemDuration(talentPoints int32) time.Duration

func FireResistanceTotemValue

func FireResistanceTotemValue(talentPoints int32) float64

func FlametongueTotemDamage

func FlametongueTotemDamage(weaponSpeed float64) float64

The fire damage a main-hand hit adds for a weapon of this speed.

func FlametongueTotemDuration

func FlametongueTotemDuration(talentPoints int32) time.Duration

func FlametongueTotemPriority

func FlametongueTotemPriority() float64

A Flametongue Totem bids its proc's base points for the category.

func FrostResistanceAuraDuration

func FrostResistanceAuraDuration(talentPoints int32) time.Duration

func FrostResistanceAuraValue

func FrostResistanceAuraValue(talentPoints int32) float64

func FrostResistanceTotemDuration

func FrostResistanceTotemDuration(talentPoints int32) time.Duration

func FrostResistanceTotemValue

func FrostResistanceTotemValue(talentPoints int32) float64

func FuriousHowlDuration

func FuriousHowlDuration(talentPoints int32) time.Duration

func FuriousHowlValue

func FuriousHowlValue(talentPoints int32) float64

func GiftOfArthasDuration

func GiftOfArthasDuration(talentPoints int32) time.Duration

func GiftOfArthasValue

func GiftOfArthasValue(talentPoints int32) float64

func GraceOfAirTotemDuration

func GraceOfAirTotemDuration(talentPoints int32) time.Duration

func GraceOfAirTotemValue

func GraceOfAirTotemValue(talentPoints int32) float64

func GreaterBlessingOfKingsDuration

func GreaterBlessingOfKingsDuration(talentPoints int32) time.Duration

func GreaterBlessingOfKingsValue

func GreaterBlessingOfKingsValue(talentPoints int32) float64

func GreaterBlessingOfMightDuration

func GreaterBlessingOfMightDuration(talentPoints int32) time.Duration

func GreaterBlessingOfMightValue

func GreaterBlessingOfMightValue(talentPoints int32) float64

func GreaterBlessingOfWisdomDuration

func GreaterBlessingOfWisdomDuration(talentPoints int32) time.Duration

func GreaterBlessingOfWisdomValue

func GreaterBlessingOfWisdomValue(talentPoints int32) float64

func HeadmastersChargeDuration

func HeadmastersChargeDuration(talentPoints int32) time.Duration

func HeadmastersChargeValue

func HeadmastersChargeValue(talentPoints int32) float64

func HexOfWeaknessDuration

func HexOfWeaknessDuration(talentPoints int32) time.Duration

func HexOfWeaknessValue

func HexOfWeaknessValue(talentPoints int32) float64

func HoldOverWindfuryTotemRivals

func HoldOverWindfuryTotemRivals(totemAura *core.Aura)

A standing Windfury Totem, the raid's or the shaman's own, outbids its rivals.

func HuntersMarkDuration

func HuntersMarkDuration(talentPoints int32) time.Duration

func HuntersMarkValue

func HuntersMarkValue(talentPoints int32) float64

func InnervatesCooldown

func InnervatesCooldown() time.Duration

func InnervatesDuration

func InnervatesDuration(talentPoints int32) time.Duration

func InnervatesValue

func InnervatesValue(talentPoints int32) float64

func InsectSwarmDuration

func InsectSwarmDuration(talentPoints int32) time.Duration

func InsectSwarmValue

func InsectSwarmValue(talentPoints int32) float64

func IsWindfuryTotemStrike

func IsWindfuryTotemStrike(spell *core.Spell) bool

For the procs that hear Windfury Totem hits apart from other main-hand specials, as a paladin's seals do.

func JudgementOfLightDuration

func JudgementOfLightDuration(talentPoints int32) time.Duration

func JudgementOfWisdomDuration

func JudgementOfWisdomDuration(talentPoints int32) time.Duration

func LeaderOfThePackDuration

func LeaderOfThePackDuration(talentPoints int32) time.Duration

func LeaderOfThePackValue

func LeaderOfThePackValue(talentPoints int32) float64

func ManaSpringTotemDuration

func ManaSpringTotemDuration(talentPoints int32) time.Duration

func ManaSpringTotemValue

func ManaSpringTotemValue(talentPoints int32) float64

func ManaTideTotemsCooldown

func ManaTideTotemsCooldown() time.Duration

func ManaTideTotemsDuration

func ManaTideTotemsDuration(talentPoints int32) time.Duration

func ManaTideTotemsValue

func ManaTideTotemsValue(talentPoints int32) float64

func MarkOfTheWildDuration

func MarkOfTheWildDuration(talentPoints int32) time.Duration

func MarkOfTheWildValue

func MarkOfTheWildValue(talentPoints int32) float64

func MoonkinAuraDuration

func MoonkinAuraDuration(talentPoints int32) time.Duration

func MoonkinAuraValue

func MoonkinAuraValue(talentPoints int32) float64

func NatureResistanceTotemDuration

func NatureResistanceTotemDuration(talentPoints int32) time.Duration

func NatureResistanceTotemValue

func NatureResistanceTotemValue(talentPoints int32) float64

func NewDamageShield

func NewDamageShield(unit *core.Unit, label string, actionID core.ActionID, duration time.Duration, category string, singleAura bool,
	school core.SpellSchool, damage float64, bonusCoefficient float64) *core.Aura

The damage a damage shield deals back to whoever lands a melee hit, which also scales with the wearer's spell power by bonusCoefficient; the generated shields state none. category is the aura's own, which decides whether a second copy of the shield can sit next to it.

func NewFlametongueTotemProcTrigger

func NewFlametongueTotemProcTrigger(char *core.Character) *core.Aura

The Flametongue Totem proc on the character's main hand, inactive until a totem aura holding FlametongueTotemCategory turns it on. A character under both the raid buff and a totem of its own casting has one proc, built once, and it does nothing while the Windfury Totem proc is up.

func NewSpellDataAdmiralsHatAura

func NewSpellDataAdmiralsHatAura(unit *core.Unit, isPlayer bool, talentPoints int32) *core.Aura

func NewSpellDataArcaneIntellectAura

func NewSpellDataArcaneIntellectAura(unit *core.Unit, isPlayer bool, talentPoints int32) *core.Aura

func NewSpellDataArmorShatterAura

func NewSpellDataArmorShatterAura(unit *core.Unit, isPlayer bool, talentPoints int32) *core.Aura

func NewSpellDataAspectOfTheWildAura

func NewSpellDataAspectOfTheWildAura(unit *core.Unit, isPlayer bool, talentPoints int32) *core.Aura

func NewSpellDataAtieshDruidAura

func NewSpellDataAtieshDruidAura(unit *core.Unit, isPlayer bool, talentPoints int32, count float64) *core.Aura

func NewSpellDataAtieshMageAura

func NewSpellDataAtieshMageAura(unit *core.Unit, isPlayer bool, talentPoints int32, count float64) *core.Aura

func NewSpellDataAtieshPriestAura

func NewSpellDataAtieshPriestAura(unit *core.Unit, isPlayer bool, talentPoints int32, count float64) *core.Aura

func NewSpellDataAtieshWarlockAura

func NewSpellDataAtieshWarlockAura(unit *core.Unit, isPlayer bool, talentPoints int32, count float64) *core.Aura

func NewSpellDataBattleShoutAura

func NewSpellDataBattleShoutAura(unit *core.Unit, isPlayer bool, talentPoints int32) *core.Aura

func NewSpellDataBattleShoutRankAura

func NewSpellDataBattleShoutRankAura(unit *core.Unit, isPlayer bool, rank *spelldata.Spell) *core.Aura

func NewSpellDataBloodPactAura

func NewSpellDataBloodPactAura(unit *core.Unit, isPlayer bool, talentPoints int32) *core.Aura

func NewSpellDataBloodPactAuraFor

func NewSpellDataBloodPactAuraFor(unit *core.Unit, warlock *core.Unit) *core.Aura

A warlock's own Blood Pact, one per warlock, bidding in the party buff's category.

func NewSpellDataConcentrationAura

func NewSpellDataConcentrationAura(unit *core.Unit, isPlayer bool, talentPoints int32) *core.Aura

func NewSpellDataConcentrationAuraRank

func NewSpellDataConcentrationAuraRank(char *core.Character, rank PaladinAuraRank) *core.Aura

func NewSpellDataCurseOfElementsAura

func NewSpellDataCurseOfElementsAura(unit *core.Unit, isPlayer bool, talentPoints int32) *core.Aura

func NewSpellDataCurseOfElementsAuraFor

func NewSpellDataCurseOfElementsAuraFor(target *core.Unit, warlock *core.Unit) *core.Aura

A warlock's own Curse of the Elements, one per warlock, bidding in the curse's category.

func NewSpellDataCurseOfRecklessnessAura

func NewSpellDataCurseOfRecklessnessAura(unit *core.Unit, isPlayer bool, talentPoints int32) *core.Aura

func NewSpellDataCurseOfRecklessnessAuraFor

func NewSpellDataCurseOfRecklessnessAuraFor(target *core.Unit, warlock *core.Unit) *core.Aura

A warlock's own Curse of Recklessness, one per warlock, bidding in the curse's category.

func NewSpellDataCurseOfWeaknessAura

func NewSpellDataCurseOfWeaknessAura(unit *core.Unit, isPlayer bool, talentPoints int32) *core.Aura

func NewSpellDataCurseOfWeaknessAuraFor

func NewSpellDataCurseOfWeaknessAuraFor(target *core.Unit, warlock *core.Unit) *core.Aura

A warlock's own Curse of Weakness, one per warlock, bidding in the curse's category.

func NewSpellDataDarkInspirationAura

func NewSpellDataDarkInspirationAura(unit *core.Unit, isPlayer bool, talentPoints int32) *core.Aura

func NewSpellDataDarkInspirationAuraFor

func NewSpellDataDarkInspirationAuraFor(unit *core.Unit, priest *core.Unit, ranks int32) *core.Aura

A priest's own Dark Inspiration at the talent's rank, one per priest, bidding in the party buff's category. It yields ties, so a copy no stronger than the party's leaves the party's holding the Spirit while it is up.

func NewSpellDataDarkspearAura

func NewSpellDataDarkspearAura(unit *core.Unit, isPlayer bool, talentPoints int32) *core.Aura

func NewSpellDataDebuffAuraBySpell

func NewSpellDataDebuffAuraBySpell(target *core.Unit, spellID int32) *core.Aura

The player's copy of the generated debuff that reads the spell, or nil where none does. An item proc whose debuff is a raid debuff lands this copy, which bids in the raid debuff's category, and stacks the raid's own where its driver made that the player's copy.

func NewSpellDataDemoralizingRoarAura

func NewSpellDataDemoralizingRoarAura(unit *core.Unit, isPlayer bool, talentPoints int32) *core.Aura

func NewSpellDataDemoralizingScreechAura

func NewSpellDataDemoralizingScreechAura(unit *core.Unit, isPlayer bool, talentPoints int32) *core.Aura

func NewSpellDataDemoralizingShoutAura

func NewSpellDataDemoralizingShoutAura(unit *core.Unit, isPlayer bool, talentPoints int32) *core.Aura

func NewSpellDataDevotionAura

func NewSpellDataDevotionAura(unit *core.Unit, isPlayer bool, talentPoints int32) *core.Aura

func NewSpellDataDevotionAuraRank

func NewSpellDataDevotionAuraRank(char *core.Character, rank PaladinAuraRank) *core.Aura

func NewSpellDataDustCloudAura

func NewSpellDataDustCloudAura(unit *core.Unit, isPlayer bool, talentPoints int32) *core.Aura

func NewSpellDataExposeArmorAura

func NewSpellDataExposeArmorAura(unit *core.Unit, isPlayer bool, talentPoints int32) *core.Aura

func NewSpellDataFaerieFireAura

func NewSpellDataFaerieFireAura(unit *core.Unit, isPlayer bool, talentPoints int32) *core.Aura

func NewSpellDataFireResistanceAura

func NewSpellDataFireResistanceAura(unit *core.Unit, isPlayer bool, talentPoints int32) *core.Aura

func NewSpellDataFireResistanceAuraRank

func NewSpellDataFireResistanceAuraRank(char *core.Character, rank PaladinAuraRank) *core.Aura

func NewSpellDataFireResistanceTotemAura

func NewSpellDataFireResistanceTotemAura(unit *core.Unit, isPlayer bool, talentPoints int32) *core.Aura

func NewSpellDataFlametongueTotemAura

func NewSpellDataFlametongueTotemAura(unit *core.Unit, isPlayer bool, talentPoints int32) *core.Aura

func NewSpellDataFrostResistanceAura

func NewSpellDataFrostResistanceAura(unit *core.Unit, isPlayer bool, talentPoints int32) *core.Aura

func NewSpellDataFrostResistanceAuraRank

func NewSpellDataFrostResistanceAuraRank(char *core.Character, rank PaladinAuraRank) *core.Aura

func NewSpellDataFrostResistanceTotemAura

func NewSpellDataFrostResistanceTotemAura(unit *core.Unit, isPlayer bool, talentPoints int32) *core.Aura

func NewSpellDataFuriousHowlAura

func NewSpellDataFuriousHowlAura(unit *core.Unit, isPlayer bool, talentPoints int32) *core.Aura

func NewSpellDataGiftOfArthasAura

func NewSpellDataGiftOfArthasAura(unit *core.Unit, isPlayer bool, talentPoints int32) *core.Aura

func NewSpellDataGraceOfAirTotemRankAura

func NewSpellDataGraceOfAirTotemRankAura(unit *core.Unit, rank *spelldata.Spell) *core.Aura

A caster's own copy of a rank of the totem, on the rank's buff spell.

func NewSpellDataGreaterBlessingOfKingsAura

func NewSpellDataGreaterBlessingOfKingsAura(unit *core.Unit, isPlayer bool, talentPoints int32) *core.Aura

func NewSpellDataHeadmastersChargeAura

func NewSpellDataHeadmastersChargeAura(unit *core.Unit, isPlayer bool, talentPoints int32) *core.Aura

func NewSpellDataHexOfWeaknessAura

func NewSpellDataHexOfWeaknessAura(unit *core.Unit, isPlayer bool, talentPoints int32) *core.Aura

func NewSpellDataHuntersMarkAura

func NewSpellDataHuntersMarkAura(unit *core.Unit, isPlayer bool, talentPoints int32) *core.Aura

func NewSpellDataInnervatesAura

func NewSpellDataInnervatesAura(unit *core.Unit, isPlayer bool, talentPoints int32) *core.Aura

func NewSpellDataInsectSwarmAura

func NewSpellDataInsectSwarmAura(unit *core.Unit, isPlayer bool, talentPoints int32) *core.Aura

func NewSpellDataJudgementOfLightAura

func NewSpellDataJudgementOfLightAura(unit *core.Unit, isPlayer bool, talentPoints int32) *core.Aura

func NewSpellDataJudgementOfLightAuraRank

func NewSpellDataJudgementOfLightAuraRank(target *core.Unit, caster *core.Unit, rank JudgementRank) *core.Aura

The paladin's own Judgement of Light at one rank: the bare 40-second debuff, plus the heal it grants whoever strikes the target.

func NewSpellDataJudgementOfTheCrusaderAuraRank

func NewSpellDataJudgementOfTheCrusaderAuraRank(target *core.Unit, rank JudgementRank) *core.Aura

Judgement of the Crusader raises the Holy damage the target takes by a flat amount. Every rank and every paladin share one exclusive category, so the strongest active one is the one that counts.

func NewSpellDataJudgementOfWisdomAura

func NewSpellDataJudgementOfWisdomAura(unit *core.Unit, isPlayer bool, talentPoints int32) *core.Aura

func NewSpellDataJudgementOfWisdomAuraRank

func NewSpellDataJudgementOfWisdomAuraRank(target *core.Unit, rank JudgementRank) *core.Aura

The paladin's own Judgement of Wisdom at one rank.

func NewSpellDataLeaderOfThePackAura

func NewSpellDataLeaderOfThePackAura(unit *core.Unit, isPlayer bool, talentPoints int32) *core.Aura

func NewSpellDataManaSpringTotemAura

func NewSpellDataManaSpringTotemAura(unit *core.Unit, isPlayer bool, talentPoints int32) *core.Aura

func NewSpellDataManaTideTotemsAura

func NewSpellDataManaTideTotemsAura(unit *core.Unit, isPlayer bool, talentPoints int32) *core.Aura

func NewSpellDataMarkOfTheWildAura

func NewSpellDataMarkOfTheWildAura(unit *core.Unit, isPlayer bool, talentPoints int32) *core.Aura

func NewSpellDataMoonkinAura

func NewSpellDataMoonkinAura(unit *core.Unit, isPlayer bool, talentPoints int32) *core.Aura

func NewSpellDataNatureResistanceTotemAura

func NewSpellDataNatureResistanceTotemAura(unit *core.Unit, isPlayer bool, talentPoints int32) *core.Aura

func NewSpellDataPowerInfusionsAura

func NewSpellDataPowerInfusionsAura(unit *core.Unit, isPlayer bool, talentPoints int32) *core.Aura

func NewSpellDataPowerWordFortitudeAura

func NewSpellDataPowerWordFortitudeAura(unit *core.Unit, isPlayer bool, talentPoints int32) *core.Aura

func NewSpellDataPrayerOfFortitudeAura

func NewSpellDataPrayerOfFortitudeAura(unit *core.Unit, isPlayer bool, talentPoints int32) *core.Aura

A priest's prayer reads its own row and bids as the raid's Power Word: Fortitude does, so the two count once.

func NewSpellDataPrayerOfShadowProtectionAura

func NewSpellDataPrayerOfShadowProtectionAura(unit *core.Unit, isPlayer bool, talentPoints int32) *core.Aura

A priest's prayer reads its own row and bids in the shadow school as the raid's Shadow Protection does, so the two count once.

func NewSpellDataPrayerOfSpiritAura

func NewSpellDataPrayerOfSpiritAura(unit *core.Unit, isPlayer bool, talentPoints int32) *core.Aura

func NewSpellDataPunctureArmorAura

func NewSpellDataPunctureArmorAura(unit *core.Unit, isPlayer bool, talentPoints int32) *core.Aura

func NewSpellDataRetributionAura

func NewSpellDataRetributionAura(unit *core.Unit, isPlayer bool, talentPoints int32) *core.Aura

func NewSpellDataRetributionAuraRank

func NewSpellDataRetributionAuraRank(char *core.Character, isPlayer bool, rank PaladinAuraRank, externalSpellPower float64) *core.Aura

The aura on the unit the shield protects, at the rank the paladin cast. The external (party-buff) copy takes the providing paladin's Holy spell power as externalSpellPower.

func NewSpellDataScorpidStingAura

func NewSpellDataScorpidStingAura(unit *core.Unit, isPlayer bool, talentPoints int32) *core.Aura

func NewSpellDataScorpidStingAuraFor

func NewSpellDataScorpidStingAuraFor(target *core.Unit, hunter *core.Unit, stingTag string) *core.Aura

A hunter's own Scorpid Sting, one per hunter, tagged with the tag its stings share.

func NewSpellDataShadowProtectionAura

func NewSpellDataShadowProtectionAura(unit *core.Unit, isPlayer bool, talentPoints int32) *core.Aura

func NewSpellDataShadowResistanceAura

func NewSpellDataShadowResistanceAura(unit *core.Unit, isPlayer bool, talentPoints int32) *core.Aura

func NewSpellDataShadowResistanceAuraRank

func NewSpellDataShadowResistanceAuraRank(char *core.Character, rank PaladinAuraRank) *core.Aura

func NewSpellDataStoneskinTotemAura

func NewSpellDataStoneskinTotemAura(unit *core.Unit, isPlayer bool, talentPoints int32) *core.Aura

func NewSpellDataStrengthOfEarthTotemRankAura

func NewSpellDataStrengthOfEarthTotemRankAura(unit *core.Unit, rank *spelldata.Spell) *core.Aura

A caster's own copy of a rank of the totem, on the rank's buff spell.

func NewSpellDataSunderArmorAura

func NewSpellDataSunderArmorAura(unit *core.Unit, isPlayer bool, talentPoints int32) *core.Aura

func NewSpellDataThornsAura

func NewSpellDataThornsAura(unit *core.Unit, isPlayer bool, talentPoints int32) *core.Aura

func NewSpellDataThornsAuraWithSpellPower

func NewSpellDataThornsAuraWithSpellPower(unit *core.Unit, isPlayer bool, externalSpellPower float64) *core.Aura

The aura on the unit the shield protects. The external (individual-buff) copy takes the providing druid's Nature spell power as externalSpellPower.

func NewSpellDataThunderClapAura

func NewSpellDataThunderClapAura(unit *core.Unit, isPlayer bool, talentPoints int32) *core.Aura

func NewSpellDataThunderfuryAura

func NewSpellDataThunderfuryAura(unit *core.Unit, isPlayer bool, talentPoints int32) *core.Aura

func NewSpellDataTrueshotAura

func NewSpellDataTrueshotAura(unit *core.Unit, isPlayer bool, talentPoints int32) *core.Aura

func NewSpellDataVindicationAura

func NewSpellDataVindicationAura(unit *core.Unit, isPlayer bool, talentPoints int32) *core.Aura

func NewSpellDataWindfuryTotemAura

func NewSpellDataWindfuryTotemAura(unit *core.Unit, isPlayer bool, talentPoints int32) *core.Aura

func NewWindfuryTotemProcTrigger

func NewWindfuryTotemProcTrigger(char *core.Character) *core.Aura

The Windfury Totem proc on the character's main hand, inactive until a totem aura holding WindfuryTotemCategory turns it on. A character under both the party buff and a totem of its own casting has one proc, built once.

func PowerInfusionsCooldown

func PowerInfusionsCooldown() time.Duration

func PowerInfusionsDuration

func PowerInfusionsDuration(talentPoints int32) time.Duration

func PowerInfusionsValue

func PowerInfusionsValue(talentPoints int32) float64

func PowerWordFortitudeDuration

func PowerWordFortitudeDuration(talentPoints int32) time.Duration

func PowerWordFortitudeValue

func PowerWordFortitudeValue(talentPoints int32) float64

func PrayerOfSpiritDuration

func PrayerOfSpiritDuration(talentPoints int32) time.Duration

func PrayerOfSpiritValue

func PrayerOfSpiritValue(talentPoints int32) float64

func PunctureArmorDuration

func PunctureArmorDuration(talentPoints int32) time.Duration

func PunctureArmorValue

func PunctureArmorValue(talentPoints int32) float64

func RetributionAuraDuration

func RetributionAuraDuration(talentPoints int32) time.Duration

func RetributionAuraValue

func RetributionAuraValue(talentPoints int32) float64

func ScorpidStingDuration

func ScorpidStingDuration(talentPoints int32) time.Duration

func ScorpidStingValue

func ScorpidStingValue(talentPoints int32) float64

func ShadowProtectionDuration

func ShadowProtectionDuration(talentPoints int32) time.Duration

func ShadowProtectionValue

func ShadowProtectionValue(talentPoints int32) float64

func ShadowResistanceAuraDuration

func ShadowResistanceAuraDuration(talentPoints int32) time.Duration

func ShadowResistanceAuraValue

func ShadowResistanceAuraValue(talentPoints int32) float64

func SlowAura

func SlowAura(target *core.Unit) *core.Aura

func StoneskinTotemDuration

func StoneskinTotemDuration(talentPoints int32) time.Duration

func StoneskinTotemValue

func StoneskinTotemValue(talentPoints int32) float64

func StrengthOfEarthTotemDuration

func StrengthOfEarthTotemDuration(talentPoints int32) time.Duration

func StrengthOfEarthTotemValue

func StrengthOfEarthTotemValue(talentPoints int32) float64

func SunderArmorDuration

func SunderArmorDuration(talentPoints int32) time.Duration

func SunderArmorValue

func SunderArmorValue(talentPoints int32) float64

func ThornsDuration

func ThornsDuration(talentPoints int32) time.Duration

func ThornsValue

func ThornsValue(talentPoints int32) float64

func ThunderClapDuration

func ThunderClapDuration(talentPoints int32) time.Duration

func ThunderClapValue

func ThunderClapValue(talentPoints int32) float64

func ThunderfuryDuration

func ThunderfuryDuration(talentPoints int32) time.Duration

func ThunderfuryValue

func ThunderfuryValue(talentPoints int32) float64

func TrueshotAuraDuration

func TrueshotAuraDuration(talentPoints int32) time.Duration

func TrueshotAuraValue

func TrueshotAuraValue(talentPoints int32) float64

func VindicationDuration

func VindicationDuration(talentPoints int32) time.Duration

func VindicationValue

func VindicationValue(talentPoints int32) float64

func WindfuryTotemDuration

func WindfuryTotemDuration(talentPoints int32) time.Duration

func WindfuryTotemPriority

func WindfuryTotemPriority() float64

A Windfury Totem bids the attack power its hits add, the raid aura's dummy effect, for the category.

Types

type JudgementRank

type JudgementRank struct {
	SpellID int32
	Rank    int32
	Value   float64
	HealID  int32 // Judgement of Light's heal, whose row states the amount.
}

One rank of a judgement debuff: the spell the target shows and the number its row states. The paladin registers a rank per row; the debuff panel applies the max rank, carried by the *MaxRank values with Rank 0.

type Meta

type Meta struct {
	// The buff's name in the UI. The aura's label adds " (Player)" or " (External)".
	Label string
	// The row the aura's numbers are read from.
	Spell *spelldata.Spell
	// The cast, for a row whose aura states no duration of its own and whose cooldown is the cast's.
	// Nil where the spell's own row times the buff.
	Cast *spelldata.Spell

	// The aura's own exclusive category, which is also its Tag; "" for none.
	Category string
	// A second category the player's own copy joins without an effect of its own.
	SharedCategory string
	// The category holds one aura at a time, and the aura bids in it as a whole.
	SingleAura bool

	// The improving talent, and the effect of it that prices the buff, counted the way EffectN
	// counts. TalentScalesDuration says the talent prices the duration rather than the amount.
	Talent               spelldata.Ladder
	TalentEffect         int32
	TalentScalesDuration bool
	// TalentDivisor prices the buff at talentPoints/TalentDivisor of the spell's amount, for a talent
	// a tooltip prices by rank; 0 for a talent priced by a spell modifier.
	TalentDivisor int32

	// The aura effects the buff leaves out, by aura.
	SkipAuras []dbcenums.EffectAuraType
	// The finisher the raid config puts on the target is cast at full combo points.
	FullComboPoints bool
	// The mana regen percent is Innervate's multiplier on the mana regen.
	AllManaRegen bool
}

What the generator states about one manifest row: the spell the aura reads, how the sim names it and what it bids in. Which effects are which stats, what they are worth and how they stack is read off the row at runtime by spelldata.ParseEffects, with the options Options answers.

func (*Meta) Cooldown

func (m *Meta) Cooldown() time.Duration

func (*Meta) Duration

func (m *Meta) Duration(talentPoints int32) time.Duration

func (*Meta) Options

func (m *Meta) Options(talentPoints int32) []spelldata.ParseOpt

The parse options the row states, for a caster with these talent points.

func (*Meta) Value

func (m *Meta) Value(talentPoints int32) float64

The first amount the aura applies, in the sim's units: the stat, the multiplier or the pseudo-stat change it attaches. A damage shield's amount is the damage it deals.

type PaladinAuraRank

type PaladinAuraRank struct {
	SpellID int32
	Rank    int32
	Value   float64
}

One rank of a paladin aura: the spell the caster used and the number its row states. Retribution Aura's damage shield deals Value; every other aura reads its amount off the spell. The paladin registers an aura per rank; each joins the same categories as the generated party-buff copy, which is the top rank.

Jump to

Keyboard shortcuts

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