Documentation
¶
Index ¶
- Constants
- Variables
- type Paladin
- func (paladin *Paladin) AddPartyBuffs(_ *proto.PartyBuffs)
- func (paladin *Paladin) AddRaidBuffs(_ *proto.RaidBuffs)
- func (paladin *Paladin) ApplyTalents()
- func (paladin *Paladin) GetCharacter() *core.Character
- func (paladin *Paladin) GetPaladin() *Paladin
- func (paladin *Paladin) Initialize()
- func (paladin *Paladin) OnEncounterStart(_ *core.Simulation)
- func (paladin *Paladin) Reset(_ *core.Simulation)
- type PaladinAgent
Constants ¶
const ( SpellMaskNone int64 = 0 // Abilities SpellMaskJudgement int64 = 1 << iota SpellMaskHolyStrike SpellMaskConsecration SpellMaskExorcism SpellMaskHammerOfWrath SpellMaskHolyWrath SpellMaskHolyLight SpellMaskFlashOfLight SpellMaskLayOnHands SpellMaskRighteousFury // Talent abilities SpellMaskDivineFavor SpellMaskHolyShock SpellMaskHolyShockHeal SpellMaskHolyShield SpellMaskHolyShieldProc SpellMaskSwiftJudgement SpellMaskTemplarsBulwark SpellMaskLightsVigil SpellMaskLightsVigilHeal SpellMaskOathOfLight // Seals SpellMaskSealOfRighteousness SpellMaskSealOfCommand SpellMaskSealOfLight SpellMaskSealOfWisdom SpellMaskSealOfJustice SpellMaskSealOfTheCrusader SpellMaskSealOfFury // What the seals do on a hit SpellMaskSealOfRighteousnessProc SpellMaskSealOfCommandProc SpellMaskSealOfLightProc SpellMaskSealOfWisdomProc SpellMaskSealOfFuryProc // What Judgement unleashes SpellMaskJudgementOfRighteousness SpellMaskJudgementOfCommand SpellMaskJudgementOfLight SpellMaskJudgementOfWisdom SpellMaskJudgementOfJustice SpellMaskJudgementOfTheCrusader SpellMaskJudgementOfFury // Auras SpellMaskDevotionAura SpellMaskRetributionAura SpellMaskConcentrationAura SpellMaskFireResistanceAura SpellMaskFrostResistanceAura SpellMaskShadowResistanceAura )
Spell masks identify the paladin's spells to talents, proc triggers and spell mods.
const ( SpellMaskAllSeals = SpellMaskSealOfRighteousness | SpellMaskSealOfCommand | SpellMaskSealOfLight | SpellMaskSealOfWisdom | SpellMaskSealOfJustice | SpellMaskSealOfTheCrusader | SpellMaskSealOfFury SpellMaskSealProcs = SpellMaskSealOfRighteousnessProc | SpellMaskSealOfCommandProc | SpellMaskSealOfLightProc | SpellMaskSealOfWisdomProc | SpellMaskSealOfFuryProc SpellMaskAllJudgements = SpellMaskJudgementOfRighteousness | SpellMaskJudgementOfCommand | SpellMaskJudgementOfLight | SpellMaskJudgementOfWisdom | SpellMaskJudgementOfJustice | SpellMaskJudgementOfTheCrusader | SpellMaskJudgementOfFury // The heals Illumination names. SpellMaskHealingSpells = SpellMaskHolyLight | SpellMaskFlashOfLight | SpellMaskHolyShockHeal )
const SealCategory = "PaladinSeal"
Only one seal is up at a time.
Variables ¶
var ( SealOfRighteousnessRankMap = spellData.SealOfRighteousness SealOfCommandRankMap = spellData.SealOfCommand SealOfLightRankMap = spellData.SealOfLight SealOfWisdomRankMap = spellData.SealOfWisdom SealOfTheCrusaderRankMap = spellData.SealOfTheCrusader SealOfFuryRankMap = spellData.SealOfFury )
The seals' rows as the game files state them. Seal of Command is a talent and registers from registerTalentSpells.
var ConsecrationRankMap = spellData.Consecration
var DevotionAuraRankMap = spellData.DevotionAura
var ExorcismRankMap = spellData.Exorcism
var FireResistanceAuraRankMap = spellData.FireResistanceAura
var FlashOfLightRankMap = spellData.FlashOfLight
var FrostResistanceAuraRankMap = spellData.FrostResistanceAura
var HammerOfWrathRankMap = spellData.HammerOfWrath
var HolyLightRankMap = spellData.HolyLight
var HolyShieldRankMap = spellData.HolyShield
var HolyShockRankMap = spellData.HolyShock
var HolyStrikeRankMap = spellData.HolyStrike
var HolyWrathRankMap = spellData.HolyWrath
var ItemSetBattlegearOfEternalJustice = core.NewItemSet(core.ItemSet{ ID: 506, Name: "Battlegear of Eternal Justice", 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(26135) trigger := spelldata.ProcTrigger(character, row, nil) trigger.Handler = shared.FiredSpellHandler(character, trigger.ActionID, row) trigger.Name = "Battlegear of Eternal Justice - 3PC" trigger.ProcMask = core.ProcMaskUnknown trigger.ClassSpellMask = SpellMaskJudgement setBonusAura.AttachProcTrigger(trigger) setBonusAura.ExposeToAPL(row.ID) }, }, })
Ruins of Ahn'Qiraj https://www.wowhead.com/forever/item-set=506/battlegear-of-eternal-justice
var ItemSetJusticeArmor = core.NewItemSet(core.ItemSet{ ID: 2107, Name: "Justice Armor", Slots: justiceSetSlots, Bonuses: map[int32]core.ApplySetBonus{ 2: func(_ core.Agent, setBonusAura *core.Aura) { setBonusAura. AttachStatBuff(stats.Spirit, 10). ExposeToAPL(1300948) }, 4: func(_ core.Agent, setBonusAura *core.Aura) { setBonusAura. AttachStatsBuff(stats.Stats{stats.HealingPower: 26, stats.SpellDamage: 9}). ExposeToAPL(1301080) }, 5: func(_ core.Agent, setBonusAura *core.Aura) { setBonusAura. AttachSpellMod(core.SpellModConfig{ ClassMask: SpellMaskHolyShock | SpellMaskHolyShockHeal, Kind: core.SpellMod_Cooldown_Flat, TimeValue: -time.Second, }). ExposeToAPL(1301694) }, }, })
Tier 1 - Holy https://www.wowhead.com/forever/item-set=2107/justice-armor
The 3-piece bonus takes 30 sec off Blessing of Protection's cooldown, which the sim does not cast.
var ItemSetJusticeBattlegear = core.NewItemSet(core.ItemSet{ ID: 2106, Name: "Justice Battlegear", Slots: justiceSetSlots, Bonuses: map[int32]core.ApplySetBonus{ 2: func(_ core.Agent, setBonusAura *core.Aura) { setBonusAura. AttachMultiplyAttackSpeed(1.01). AttachMultiplyCastSpeed(1.01). ExposeToAPL(1300951) }, 4: func(agent core.Agent, setBonusAura *core.Aura) { spelldata.ParseEffects(agent.GetCharacter(), setBonusAura, spelldata.MustFind(1301084)) setBonusAura.ExposeToAPL(1301084) }, 5: func(_ core.Agent, setBonusAura *core.Aura) { setBonusAura. AttachSpellMod(core.SpellModConfig{ ClassMask: SpellMaskJudgement, Kind: core.SpellMod_Cooldown_Flat, TimeValue: -500 * time.Millisecond, }). ExposeToAPL(1301702) }, }, })
Tier 1 - Retribution https://www.wowhead.com/forever/item-set=2106/justice-battlegear
The 3-piece bonus takes 5 sec off Hammer of Justice's cooldown, which the sim does not cast.
var ItemSetJusticeBattleplate = core.NewItemSet(core.ItemSet{ ID: 2108, Name: "Justice Battleplate", Slots: justiceSetSlots, Bonuses: map[int32]core.ApplySetBonus{ 2: func(_ core.Agent, setBonusAura *core.Aura) { setBonusAura. AttachStatBuff(stats.DefenseRating, 7*core.DefenseRatingPerDefenseLevel). ExposeToAPL(1300949) }, 4: func(_ core.Agent, setBonusAura *core.Aura) { setBonusAura. AttachStatBuff(stats.ExpertiseRating, 12). ExposeToAPL(1301083) }, 5: func(agent core.Agent, setBonusAura *core.Aura) { agent.(PaladinAgent).GetPaladin().forbearanceReduction += time.Second * 10 setBonusAura.ExposeToAPL(1301697) }, }, })
Tier 1 - Protection https://www.wowhead.com/forever/item-set=2108/justice-battleplate
The 3-piece bonus takes 1.5 sec off Turn Undead's cast time, which the sim does not cast.
var LayOnHandsRankMap = spellData.LayOnHands
var LightsVigilRankMap = spellData.LightsVigil
var RetributionAuraRankMap = spellData.RetributionAura
var ShadowResistanceAuraRankMap = spellData.ShadowResistanceAura
var TalentTreeSizes = [3]int{17, 17, 17}
Functions ¶
This section is empty.
Types ¶
type Paladin ¶
type Paladin struct {
core.Character
Talents *proto.PaladinTalents
Forbearance *core.Aura
RighteousFuryAura *core.Aura
Judgement *core.Spell
// The judgement effects this paladin can put on enemies; its white swings and Windfury Totem
// hits refresh them.
JudgementAuras []core.AuraArray
// contains filtered or unexported fields
}
func NewPaladin ¶
func (*Paladin) AddPartyBuffs ¶
func (paladin *Paladin) AddPartyBuffs(_ *proto.PartyBuffs)
func (*Paladin) AddRaidBuffs ¶
func (*Paladin) ApplyTalents ¶
func (paladin *Paladin) ApplyTalents()
func (*Paladin) GetCharacter ¶
func (*Paladin) GetPaladin ¶
func (*Paladin) Initialize ¶
func (paladin *Paladin) Initialize()
func (*Paladin) OnEncounterStart ¶
func (paladin *Paladin) OnEncounterStart(_ *core.Simulation)
func (*Paladin) Reset ¶
func (paladin *Paladin) Reset(_ *core.Simulation)
type PaladinAgent ¶
type PaladinAgent interface {
GetPaladin() *Paladin
}
Implemented by each Paladin spec.
Source Files
¶
- auras.go
- concentration_aura.go
- consecration.go
- devotion_aura.go
- divine_favor.go
- exorcism.go
- fire_resistance_aura.go
- flash_of_light.go
- forbearance.go
- frost_resistance_aura.go
- hammer_of_wrath.go
- holy_light.go
- holy_shield.go
- holy_shock.go
- holy_strike.go
- holy_wrath.go
- item_armor.go
- item_librams.go
- item_sets.go
- judgement.go
- lay_on_hands.go
- lights_vigil.go
- menu_groups.go
- oath_of_light.go
- paladin.go
- retribution_aura.go
- righteous_fury.go
- seal_of_command.go
- seal_of_fury.go
- seal_of_justice.go
- seal_of_light.go
- seal_of_righteousness.go
- seal_of_the_crusader.go
- seal_of_wisdom.go
- seals.go
- shadow_resistance_aura.go
- spell_data_auto_gen.go
- spell_masks.go
- swift_judgement.go
- talents.go
- talents_holy.go
- talents_protection.go
- talents_retribution.go
- templars_bulwark.go