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
- Variables
- func AddGeneratedFlatBonus(aura *core.Aura, stat stats.Stat, base float64, bonus float64)
- func AdmiralsHatDuration(talentPoints int32) time.Duration
- func AdmiralsHatValue(talentPoints int32) float64
- func ApplyInspiration(character *core.Character, uptime float64)
- func ArcaneIntellectDuration(talentPoints int32) time.Duration
- func ArcaneIntellectValue(talentPoints int32) float64
- func ArmorShatterDuration(talentPoints int32) time.Duration
- func ArmorShatterValue(talentPoints int32) float64
- func AspectOfTheWildDuration(talentPoints int32) time.Duration
- func AspectOfTheWildValue(talentPoints int32) float64
- func AtieshDruidDuration(talentPoints int32) time.Duration
- func AtieshDruidValue(talentPoints int32) float64
- func AtieshMageDuration(talentPoints int32) time.Duration
- func AtieshMageValue(talentPoints int32) float64
- func AtieshPriestDuration(talentPoints int32) time.Duration
- func AtieshPriestValue(talentPoints int32) float64
- func AtieshWarlockDuration(talentPoints int32) time.Duration
- func AtieshWarlockValue(talentPoints int32) float64
- func AtkSpeedReductionEffect(aura *core.Aura, speedMultiplier float64) *core.ExclusiveEffect
- func AttachDamageShield(aura *core.Aura, school core.SpellSchool, damage float64, ...)
- func AttachJudgementOfLightHeal(aura *core.Aura, caster *core.Unit, rank JudgementRank) *core.Aura
- func AttachJudgementOfWisdomMana(aura *core.Aura, rank JudgementRank) *core.Aura
- func BattleShoutDuration(talentPoints int32) time.Duration
- func BattleShoutRankValue(rank *spelldata.Spell) float64
- func BattleShoutValue(talentPoints int32) float64
- func BloodPactDuration(talentPoints int32) time.Duration
- func BloodPactValue(talentPoints int32) float64
- func CastSpeedReductionEffect(aura *core.Aura, castTimeMultiplier float64) *core.ExclusiveEffect
- func ConcentrationAuraDuration(talentPoints int32) time.Duration
- func ConcentrationAuraValue(talentPoints int32) float64
- func CurseOfElementsDuration(talentPoints int32) time.Duration
- func CurseOfElementsValue(talentPoints int32) float64
- func CurseOfRecklessnessDuration(talentPoints int32) time.Duration
- func CurseOfRecklessnessValue(talentPoints int32) float64
- func CurseOfWeaknessDuration(talentPoints int32) time.Duration
- func CurseOfWeaknessValue(talentPoints int32) float64
- func DarkInspirationDuration(talentPoints int32) time.Duration
- func DarkInspirationValue(talentPoints int32) float64
- func DarkspearDuration(talentPoints int32) time.Duration
- func DarkspearValue(talentPoints int32) float64
- func DemoralizingRoarDuration(talentPoints int32) time.Duration
- func DemoralizingRoarValue(talentPoints int32) float64
- func DemoralizingScreechDuration(talentPoints int32) time.Duration
- func DemoralizingScreechValue(talentPoints int32) float64
- func DemoralizingShoutDuration(talentPoints int32) time.Duration
- func DemoralizingShoutValue(talentPoints int32) float64
- func DevotionAuraDuration(talentPoints int32) time.Duration
- func DevotionAuraValue(talentPoints int32) float64
- func DustCloudDuration(talentPoints int32) time.Duration
- func DustCloudValue(talentPoints int32) float64
- func ExposeArmorDuration(talentPoints int32) time.Duration
- func ExposeArmorValue(talentPoints int32) float64
- func FaerieFireDuration(talentPoints int32) time.Duration
- func FaerieFireValue(talentPoints int32) float64
- func FireResistanceAuraDuration(talentPoints int32) time.Duration
- func FireResistanceAuraValue(talentPoints int32) float64
- func FireResistanceTotemDuration(talentPoints int32) time.Duration
- func FireResistanceTotemValue(talentPoints int32) float64
- func FlametongueTotemDamage(weaponSpeed float64) float64
- func FlametongueTotemDuration(talentPoints int32) time.Duration
- func FlametongueTotemPriority() float64
- func FrostResistanceAuraDuration(talentPoints int32) time.Duration
- func FrostResistanceAuraValue(talentPoints int32) float64
- func FrostResistanceTotemDuration(talentPoints int32) time.Duration
- func FrostResistanceTotemValue(talentPoints int32) float64
- func FuriousHowlDuration(talentPoints int32) time.Duration
- func FuriousHowlValue(talentPoints int32) float64
- func GiftOfArthasDuration(talentPoints int32) time.Duration
- func GiftOfArthasValue(talentPoints int32) float64
- func GraceOfAirTotemDuration(talentPoints int32) time.Duration
- func GraceOfAirTotemValue(talentPoints int32) float64
- func GreaterBlessingOfKingsDuration(talentPoints int32) time.Duration
- func GreaterBlessingOfKingsValue(talentPoints int32) float64
- func GreaterBlessingOfMightDuration(talentPoints int32) time.Duration
- func GreaterBlessingOfMightValue(talentPoints int32) float64
- func GreaterBlessingOfWisdomDuration(talentPoints int32) time.Duration
- func GreaterBlessingOfWisdomValue(talentPoints int32) float64
- func HeadmastersChargeDuration(talentPoints int32) time.Duration
- func HeadmastersChargeValue(talentPoints int32) float64
- func HexOfWeaknessDuration(talentPoints int32) time.Duration
- func HexOfWeaknessValue(talentPoints int32) float64
- func HoldOverWindfuryTotemRivals(totemAura *core.Aura)
- func HuntersMarkDuration(talentPoints int32) time.Duration
- func HuntersMarkValue(talentPoints int32) float64
- func InnervatesCooldown() time.Duration
- func InnervatesDuration(talentPoints int32) time.Duration
- func InnervatesValue(talentPoints int32) float64
- func InsectSwarmDuration(talentPoints int32) time.Duration
- func InsectSwarmValue(talentPoints int32) float64
- func IsWindfuryTotemStrike(spell *core.Spell) bool
- func JudgementOfLightDuration(talentPoints int32) time.Duration
- func JudgementOfWisdomDuration(talentPoints int32) time.Duration
- func LeaderOfThePackDuration(talentPoints int32) time.Duration
- func LeaderOfThePackValue(talentPoints int32) float64
- func ManaSpringTotemDuration(talentPoints int32) time.Duration
- func ManaSpringTotemValue(talentPoints int32) float64
- func ManaTideTotemsCooldown() time.Duration
- func ManaTideTotemsDuration(talentPoints int32) time.Duration
- func ManaTideTotemsValue(talentPoints int32) float64
- func MarkOfTheWildDuration(talentPoints int32) time.Duration
- func MarkOfTheWildValue(talentPoints int32) float64
- func MoonkinAuraDuration(talentPoints int32) time.Duration
- func MoonkinAuraValue(talentPoints int32) float64
- func NatureResistanceTotemDuration(talentPoints int32) time.Duration
- func NatureResistanceTotemValue(talentPoints int32) float64
- func NewDamageShield(unit *core.Unit, label string, actionID core.ActionID, duration time.Duration, ...) *core.Aura
- func NewFlametongueTotemProcTrigger(char *core.Character) *core.Aura
- func NewSpellDataAdmiralsHatAura(unit *core.Unit, isPlayer bool, talentPoints int32) *core.Aura
- func NewSpellDataArcaneIntellectAura(unit *core.Unit, isPlayer bool, talentPoints int32) *core.Aura
- func NewSpellDataArmorShatterAura(unit *core.Unit, isPlayer bool, talentPoints int32) *core.Aura
- func NewSpellDataAspectOfTheWildAura(unit *core.Unit, isPlayer bool, talentPoints int32) *core.Aura
- func NewSpellDataAtieshDruidAura(unit *core.Unit, isPlayer bool, talentPoints int32, count float64) *core.Aura
- func NewSpellDataAtieshMageAura(unit *core.Unit, isPlayer bool, talentPoints int32, count float64) *core.Aura
- func NewSpellDataAtieshPriestAura(unit *core.Unit, isPlayer bool, talentPoints int32, count float64) *core.Aura
- func NewSpellDataAtieshWarlockAura(unit *core.Unit, isPlayer bool, talentPoints int32, count float64) *core.Aura
- func NewSpellDataBattleShoutAura(unit *core.Unit, isPlayer bool, talentPoints int32) *core.Aura
- func NewSpellDataBattleShoutRankAura(unit *core.Unit, isPlayer bool, rank *spelldata.Spell) *core.Aura
- func NewSpellDataBloodPactAura(unit *core.Unit, isPlayer bool, talentPoints int32) *core.Aura
- func NewSpellDataBloodPactAuraFor(unit *core.Unit, warlock *core.Unit) *core.Aura
- func NewSpellDataConcentrationAura(unit *core.Unit, isPlayer bool, talentPoints int32) *core.Aura
- func NewSpellDataConcentrationAuraRank(char *core.Character, rank PaladinAuraRank) *core.Aura
- func NewSpellDataCurseOfElementsAura(unit *core.Unit, isPlayer bool, talentPoints int32) *core.Aura
- func NewSpellDataCurseOfElementsAuraFor(target *core.Unit, warlock *core.Unit) *core.Aura
- func NewSpellDataCurseOfRecklessnessAura(unit *core.Unit, isPlayer bool, talentPoints int32) *core.Aura
- func NewSpellDataCurseOfRecklessnessAuraFor(target *core.Unit, warlock *core.Unit) *core.Aura
- func NewSpellDataCurseOfWeaknessAura(unit *core.Unit, isPlayer bool, talentPoints int32) *core.Aura
- func NewSpellDataCurseOfWeaknessAuraFor(target *core.Unit, warlock *core.Unit) *core.Aura
- func NewSpellDataDarkInspirationAura(unit *core.Unit, isPlayer bool, talentPoints int32) *core.Aura
- func NewSpellDataDarkInspirationAuraFor(unit *core.Unit, priest *core.Unit, ranks int32) *core.Aura
- func NewSpellDataDarkspearAura(unit *core.Unit, isPlayer bool, talentPoints int32) *core.Aura
- func NewSpellDataDebuffAuraBySpell(target *core.Unit, spellID int32) *core.Aura
- func NewSpellDataDemoralizingRoarAura(unit *core.Unit, isPlayer bool, talentPoints int32) *core.Aura
- func NewSpellDataDemoralizingScreechAura(unit *core.Unit, isPlayer bool, talentPoints int32) *core.Aura
- func NewSpellDataDemoralizingShoutAura(unit *core.Unit, isPlayer bool, talentPoints int32) *core.Aura
- func NewSpellDataDevotionAura(unit *core.Unit, isPlayer bool, talentPoints int32) *core.Aura
- func NewSpellDataDevotionAuraRank(char *core.Character, rank PaladinAuraRank) *core.Aura
- func NewSpellDataDustCloudAura(unit *core.Unit, isPlayer bool, talentPoints int32) *core.Aura
- func NewSpellDataExposeArmorAura(unit *core.Unit, isPlayer bool, talentPoints int32) *core.Aura
- func NewSpellDataFaerieFireAura(unit *core.Unit, isPlayer bool, talentPoints int32) *core.Aura
- func NewSpellDataFireResistanceAura(unit *core.Unit, isPlayer bool, talentPoints int32) *core.Aura
- func NewSpellDataFireResistanceAuraRank(char *core.Character, rank PaladinAuraRank) *core.Aura
- func NewSpellDataFireResistanceTotemAura(unit *core.Unit, isPlayer bool, talentPoints int32) *core.Aura
- func NewSpellDataFlametongueTotemAura(unit *core.Unit, isPlayer bool, talentPoints int32) *core.Aura
- func NewSpellDataFrostResistanceAura(unit *core.Unit, isPlayer bool, talentPoints int32) *core.Aura
- func NewSpellDataFrostResistanceAuraRank(char *core.Character, rank PaladinAuraRank) *core.Aura
- func NewSpellDataFrostResistanceTotemAura(unit *core.Unit, isPlayer bool, talentPoints int32) *core.Aura
- func NewSpellDataFuriousHowlAura(unit *core.Unit, isPlayer bool, talentPoints int32) *core.Aura
- func NewSpellDataGiftOfArthasAura(unit *core.Unit, isPlayer bool, talentPoints int32) *core.Aura
- func NewSpellDataGraceOfAirTotemRankAura(unit *core.Unit, rank *spelldata.Spell) *core.Aura
- func NewSpellDataGreaterBlessingOfKingsAura(unit *core.Unit, isPlayer bool, talentPoints int32) *core.Aura
- func NewSpellDataHeadmastersChargeAura(unit *core.Unit, isPlayer bool, talentPoints int32) *core.Aura
- func NewSpellDataHexOfWeaknessAura(unit *core.Unit, isPlayer bool, talentPoints int32) *core.Aura
- func NewSpellDataHuntersMarkAura(unit *core.Unit, isPlayer bool, talentPoints int32) *core.Aura
- func NewSpellDataInnervatesAura(unit *core.Unit, isPlayer bool, talentPoints int32) *core.Aura
- func NewSpellDataInnervatesAuraShare(druid *core.Unit, percent int32) *core.Aura
- func NewSpellDataInsectSwarmAura(unit *core.Unit, isPlayer bool, talentPoints int32) *core.Aura
- func NewSpellDataJudgementOfLightAura(unit *core.Unit, isPlayer bool, talentPoints int32) *core.Aura
- func NewSpellDataJudgementOfLightAuraRank(target *core.Unit, caster *core.Unit, rank JudgementRank) *core.Aura
- func NewSpellDataJudgementOfTheCrusaderAuraRank(target *core.Unit, rank JudgementRank) *core.Aura
- func NewSpellDataJudgementOfWisdomAura(unit *core.Unit, isPlayer bool, talentPoints int32) *core.Aura
- func NewSpellDataJudgementOfWisdomAuraRank(target *core.Unit, rank JudgementRank) *core.Aura
- func NewSpellDataLeaderOfThePackAura(unit *core.Unit, isPlayer bool, talentPoints int32) *core.Aura
- func NewSpellDataManaSpringTotemAura(unit *core.Unit, isPlayer bool, talentPoints int32) *core.Aura
- func NewSpellDataManaTideTotemsAura(unit *core.Unit, isPlayer bool, talentPoints int32) *core.Aura
- func NewSpellDataMarkOfTheWildAura(unit *core.Unit, isPlayer bool, talentPoints int32) *core.Aura
- func NewSpellDataMoonkinAura(unit *core.Unit, isPlayer bool, talentPoints int32) *core.Aura
- func NewSpellDataNatureResistanceTotemAura(unit *core.Unit, isPlayer bool, talentPoints int32) *core.Aura
- func NewSpellDataPowerInfusionsAura(unit *core.Unit, isPlayer bool, talentPoints int32) *core.Aura
- func NewSpellDataPowerWordFortitudeAura(unit *core.Unit, isPlayer bool, talentPoints int32) *core.Aura
- func NewSpellDataPrayerOfFortitudeAura(unit *core.Unit, isPlayer bool, talentPoints int32) *core.Aura
- func NewSpellDataPrayerOfShadowProtectionAura(unit *core.Unit, isPlayer bool, talentPoints int32) *core.Aura
- func NewSpellDataPrayerOfSpiritAura(unit *core.Unit, isPlayer bool, talentPoints int32) *core.Aura
- func NewSpellDataPunctureArmorAura(unit *core.Unit, isPlayer bool, talentPoints int32) *core.Aura
- func NewSpellDataRetributionAura(unit *core.Unit, isPlayer bool, talentPoints int32) *core.Aura
- func NewSpellDataRetributionAuraRank(char *core.Character, isPlayer bool, rank PaladinAuraRank, ...) *core.Aura
- func NewSpellDataScorpidStingAura(unit *core.Unit, isPlayer bool, talentPoints int32) *core.Aura
- func NewSpellDataScorpidStingAuraFor(target *core.Unit, hunter *core.Unit, stingTag string) *core.Aura
- func NewSpellDataShadowProtectionAura(unit *core.Unit, isPlayer bool, talentPoints int32) *core.Aura
- func NewSpellDataShadowResistanceAura(unit *core.Unit, isPlayer bool, talentPoints int32) *core.Aura
- func NewSpellDataShadowResistanceAuraRank(char *core.Character, rank PaladinAuraRank) *core.Aura
- func NewSpellDataStoneskinTotemAura(unit *core.Unit, isPlayer bool, talentPoints int32) *core.Aura
- func NewSpellDataStrengthOfEarthTotemRankAura(unit *core.Unit, rank *spelldata.Spell) *core.Aura
- func NewSpellDataSunderArmorAura(unit *core.Unit, isPlayer bool, talentPoints int32) *core.Aura
- func NewSpellDataThornsAura(unit *core.Unit, isPlayer bool, talentPoints int32) *core.Aura
- func NewSpellDataThornsAuraWithSpellPower(unit *core.Unit, isPlayer bool, externalSpellPower float64) *core.Aura
- func NewSpellDataThunderClapAura(unit *core.Unit, isPlayer bool, talentPoints int32) *core.Aura
- func NewSpellDataThunderfuryAura(unit *core.Unit, isPlayer bool, talentPoints int32) *core.Aura
- func NewSpellDataTrueshotAura(unit *core.Unit, isPlayer bool, talentPoints int32) *core.Aura
- func NewSpellDataVindicationAura(unit *core.Unit, isPlayer bool, talentPoints int32) *core.Aura
- func NewSpellDataWindfuryTotemAura(unit *core.Unit, isPlayer bool, talentPoints int32) *core.Aura
- func NewWindfuryTotemProcTrigger(char *core.Character) *core.Aura
- func PowerInfusionsCooldown() time.Duration
- func PowerInfusionsDuration(talentPoints int32) time.Duration
- func PowerInfusionsValue(talentPoints int32) float64
- func PowerWordFortitudeDuration(talentPoints int32) time.Duration
- func PowerWordFortitudeValue(talentPoints int32) float64
- func PrayerOfSpiritDuration(talentPoints int32) time.Duration
- func PrayerOfSpiritValue(talentPoints int32) float64
- func PunctureArmorDuration(talentPoints int32) time.Duration
- func PunctureArmorValue(talentPoints int32) float64
- func RetributionAuraDuration(talentPoints int32) time.Duration
- func RetributionAuraValue(talentPoints int32) float64
- func ScorpidStingDuration(talentPoints int32) time.Duration
- func ScorpidStingValue(talentPoints int32) float64
- func ShadowProtectionDuration(talentPoints int32) time.Duration
- func ShadowProtectionValue(talentPoints int32) float64
- func ShadowResistanceAuraDuration(talentPoints int32) time.Duration
- func ShadowResistanceAuraValue(talentPoints int32) float64
- func SlowAura(target *core.Unit) *core.Aura
- func StoneskinTotemDuration(talentPoints int32) time.Duration
- func StoneskinTotemValue(talentPoints int32) float64
- func StrengthOfEarthTotemDuration(talentPoints int32) time.Duration
- func StrengthOfEarthTotemValue(talentPoints int32) float64
- func SunderArmorDuration(talentPoints int32) time.Duration
- func SunderArmorValue(talentPoints int32) float64
- func ThornsDuration(talentPoints int32) time.Duration
- func ThornsValue(talentPoints int32) float64
- func ThunderClapDuration(talentPoints int32) time.Duration
- func ThunderClapValue(talentPoints int32) float64
- func ThunderfuryDuration(talentPoints int32) time.Duration
- func ThunderfuryValue(talentPoints int32) float64
- func TrueshotAuraDuration(talentPoints int32) time.Duration
- func TrueshotAuraValue(talentPoints int32) float64
- func VindicationDuration(talentPoints int32) time.Duration
- func VindicationValue(talentPoints int32) float64
- func WindfuryTotemDuration(talentPoints int32) time.Duration
- func WindfuryTotemPriority() float64
- type JudgementRank
- type Meta
- type PaladinAuraRank
Constants ¶
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).
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 ¶
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())} )
var AdmiralsHatCategory = "AdmiralsHat"
Admiral's Hat
var ArcaneIntellectCategory = "StatBuff"
Arcane Intellect
var ArmorShatterCategory = "MinorArmorReduction"
Armor Shatter
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.
var BattleShoutCategory = "BattleShout"
Battle Shout
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.
var BloodPactCategory = "BloodPact"
Blood Pact
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
var CurseOfElementsCategory = "CurseOfElements"
Curse of the Elements
var CurseOfRecklessnessCategory = "MinorArmorReduction"
Curse of Recklessness Left out: effect 1 A_PREVENTS_FLEEING(92) misc 0
var CurseOfWeaknessCategory = "CurseOfWeakness"
Curse of Weakness
var DarkInspirationCategory = "DarkInspiration"
Dark Inspiration
var DarkspearCategory = "Darkspear"
Darkspear
var DemoralizingRoarCategory = "Demoralizing"
Demoralizing Roar
var DemoralizingScreechCategory = "Demoralizing"
Demoralizing Screech
var DemoralizingShoutCategory = "Demoralizing"
Demoralizing Shout
var DevotionAuraCategory = "DevotionAura"
Devotion Aura
var DustCloudCategory = "MinorArmorReduction"
Dust Cloud
var ExposeArmorCategory = "MajorArmorReduction"
Expose Armor
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
var FireResistanceAuraCategory = "FireResistanceAura"
Fire Resistance Aura
var FlametongueTotemCategory = "FlametongueTotem"
Flametongue Totem Left out: effect 1 A_PROC_TRIGGER_SPELL(42) misc 0
var FrostResistanceAuraCategory = "FrostResistanceAura"
Frost Resistance Aura
var FuriousHowlCategory = "BattleShout"
Furious Howl
var GiftOfArthasCategory = "GiftOfArthasAura"
Gift of Arthas
var GraceOfAirTotemCategory = "GraceOfAirTotem"
Grace of Air Totem
var HeadmastersChargeCategory = "HeadmastersCharge"
Headmaster's Charge
var HexOfWeaknessCategory = "Demoralizing"
Hex of Weakness
var HuntersMarkCategory = "HuntersMark"
Hunter's Mark Left out: effect 1 A_MOD_STALKED(68) misc 0
var InnervatesCategory = "Innervate"
Innervates
var InsectSwarmCategory = "HitChanceReduction"
Insect Swarm Left out: effect 1 A_PERIODIC_DAMAGE(3) misc 0
var LeaderOfThePackCategory = "RaidCrit"
Leader of the Pack
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.
var ManaSpringTotemCategory = "ManaSpringTotem"
Mana Spring Totem
var ManaTideTotemsCategory = "ManaTideTotem"
Mana Tide Totem
var MoonkinAuraCategory = "RaidCrit"
Moonkin Aura
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.
var PowerInfusionsCategory = "PowerInfusion"
Power Infusions
var PowerWordFortitudeCategory = "StatBuff"
Power Word: Fortitude
var PrayerOfSpiritCategory = "StatBuff"
Prayer of Spirit
var PunctureArmorCategory = "MinorArmorReduction"
Puncture Armor
var RetributionAuraCategory = "RetributionAura"
Retribution Aura
var RetributionAuraMaxRank = PaladinAuraRank{SpellID: 10301, Value: RetributionAuraValue(0)}
var ScorpidStingCategory = "HitChanceReduction"
Scorpid Sting
var ShadowResistanceAuraCategory = "ShadowResistanceAura"
Shadow Resistance Aura
var StoneskinTotemCategory = "StoneskinTotem"
Stoneskin Totem
var StrengthOfEarthTotemCategory = "StrengthOfEarthTotem"
Strength of Earth Totem
var SunderArmorCategory = "MajorArmorReduction"
Sunder Armor
var ThornsCategory = "Thorns"
Thorns
var ThunderClapCategory = "AtkSpdReduction"
Thunder Clap
var VindicationCategory = "Demoralizing"
Vindication
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 ¶
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 AdmiralsHatValue ¶
func ApplyInspiration ¶
func ArcaneIntellectDuration ¶
func ArcaneIntellectValue ¶
func ArmorShatterDuration ¶
func ArmorShatterValue ¶
func AspectOfTheWildDuration ¶
func AspectOfTheWildValue ¶
func AtieshDruidDuration ¶
func AtieshDruidValue ¶
func AtieshMageDuration ¶
func AtieshMageValue ¶
func AtieshPriestDuration ¶
func AtieshPriestValue ¶
func AtieshWarlockDuration ¶
func AtieshWarlockValue ¶
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 ¶
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 BattleShoutRankValue ¶
The attack power one rank grants, before the tier 2 set's bonus.
func BattleShoutValue ¶
func BloodPactDuration ¶
func BloodPactValue ¶
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 ConcentrationAuraValue ¶
func CurseOfElementsDuration ¶
func CurseOfElementsValue ¶
func CurseOfWeaknessDuration ¶
func CurseOfWeaknessValue ¶
func DarkInspirationDuration ¶
func DarkInspirationValue ¶
func DarkspearDuration ¶
func DarkspearValue ¶
func DemoralizingRoarValue ¶
func DemoralizingShoutValue ¶
func DevotionAuraDuration ¶
func DevotionAuraValue ¶
func DustCloudDuration ¶
func DustCloudValue ¶
func ExposeArmorDuration ¶
func ExposeArmorValue ¶
func FaerieFireDuration ¶
func FaerieFireValue ¶
func FireResistanceAuraValue ¶
func FlametongueTotemDamage ¶
The fire damage a main-hand hit adds for a weapon of this speed.
func FlametongueTotemPriority ¶
func FlametongueTotemPriority() float64
A Flametongue Totem bids its proc's base points for the category.
func FuriousHowlDuration ¶
func FuriousHowlValue ¶
func GiftOfArthasDuration ¶
func GiftOfArthasValue ¶
func GraceOfAirTotemDuration ¶
func GraceOfAirTotemValue ¶
func HeadmastersChargeValue ¶
func HexOfWeaknessDuration ¶
func HexOfWeaknessValue ¶
func HoldOverWindfuryTotemRivals ¶
A standing Windfury Totem, the raid's or the shaman's own, outbids its rivals.
func HuntersMarkDuration ¶
func HuntersMarkValue ¶
func InnervatesCooldown ¶
func InnervatesDuration ¶
func InnervatesValue ¶
func InsectSwarmDuration ¶
func InsectSwarmValue ¶
func IsWindfuryTotemStrike ¶
For the procs that hear Windfury Totem hits apart from other main-hand specials, as a paladin's seals do.
func LeaderOfThePackDuration ¶
func LeaderOfThePackValue ¶
func ManaSpringTotemDuration ¶
func ManaSpringTotemValue ¶
func ManaTideTotemsCooldown ¶
func ManaTideTotemsDuration ¶
func ManaTideTotemsValue ¶
func MarkOfTheWildDuration ¶
func MarkOfTheWildValue ¶
func MoonkinAuraDuration ¶
func MoonkinAuraValue ¶
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 ¶
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 NewSpellDataBloodPactAuraFor ¶
A warlock's own Blood Pact, one per warlock, bidding in the party buff's category.
func NewSpellDataConcentrationAuraRank ¶
func NewSpellDataConcentrationAuraRank(char *core.Character, rank PaladinAuraRank) *core.Aura
func NewSpellDataCurseOfElementsAuraFor ¶
A warlock's own Curse of the Elements, one per warlock, bidding in the curse's category.
func NewSpellDataCurseOfRecklessnessAuraFor ¶
A warlock's own Curse of Recklessness, one per warlock, bidding in the curse's category.
func NewSpellDataCurseOfWeaknessAuraFor ¶
A warlock's own Curse of Weakness, one per warlock, bidding in the curse's category.
func NewSpellDataDarkInspirationAuraFor ¶
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 NewSpellDataDebuffAuraBySpell ¶
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 NewSpellDataDevotionAuraRank ¶
func NewSpellDataDevotionAuraRank(char *core.Character, rank PaladinAuraRank) *core.Aura
func NewSpellDataFireResistanceAuraRank ¶
func NewSpellDataFireResistanceAuraRank(char *core.Character, rank PaladinAuraRank) *core.Aura
func NewSpellDataFrostResistanceAuraRank ¶
func NewSpellDataFrostResistanceAuraRank(char *core.Character, rank PaladinAuraRank) *core.Aura
func NewSpellDataGraceOfAirTotemRankAura ¶
A caster's own copy of a rank of the totem, on the rank's buff spell.
func NewSpellDataInnervatesAuraShare ¶ added in v1.0.8
The share of an Innervate a druid gains on casting it on another player (Dreamstate): every amount of the row at percent of its value, bidding in Innervate's category.
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 NewSpellDataJudgementOfWisdomAuraRank ¶
func NewSpellDataJudgementOfWisdomAuraRank(target *core.Unit, rank JudgementRank) *core.Aura
The paladin's own Judgement of Wisdom at one rank.
func NewSpellDataMoonkinAura ¶
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 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 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 NewSpellDataShadowResistanceAuraRank ¶
func NewSpellDataShadowResistanceAuraRank(char *core.Character, rank PaladinAuraRank) *core.Aura
func NewSpellDataStrengthOfEarthTotemRankAura ¶
A caster's own copy of a rank of the totem, on the rank's buff spell.
func NewSpellDataThornsAura ¶
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 NewWindfuryTotemProcTrigger ¶
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 PowerInfusionsDuration ¶
func PowerInfusionsValue ¶
func PowerWordFortitudeValue ¶
func PrayerOfSpiritDuration ¶
func PrayerOfSpiritValue ¶
func PunctureArmorDuration ¶
func PunctureArmorValue ¶
func RetributionAuraDuration ¶
func RetributionAuraValue ¶
func ScorpidStingDuration ¶
func ScorpidStingValue ¶
func ShadowProtectionValue ¶
func StoneskinTotemDuration ¶
func StoneskinTotemValue ¶
func SunderArmorDuration ¶
func SunderArmorValue ¶
func ThornsDuration ¶
func ThornsValue ¶
func ThunderClapDuration ¶
func ThunderClapValue ¶
func ThunderfuryDuration ¶
func ThunderfuryValue ¶
func TrueshotAuraDuration ¶
func TrueshotAuraValue ¶
func VindicationDuration ¶
func VindicationValue ¶
func WindfuryTotemDuration ¶
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
SharedCategory string
// The category holds one aura at a time, and the aura bids in it as a whole.
SingleAura bool
// The elixirs' category the buff's stats overwrite (spelldata.Overwrites); "" for none.
ElixirCategory string
// 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.
type PaladinAuraRank ¶
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.