paladin

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2026 License: MIT Imports: 10 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 (
	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.

View Source
const SealCategory = "PaladinSeal"

Only one seal is up at a time.

Variables

View Source
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.

View Source
var ConsecrationRankMap = spellData.Consecration
View Source
var DevotionAuraRankMap = spellData.DevotionAura
View Source
var ExorcismRankMap = spellData.Exorcism
View Source
var FireResistanceAuraRankMap = spellData.FireResistanceAura
View Source
var FlashOfLightRankMap = spellData.FlashOfLight
View Source
var FrostResistanceAuraRankMap = spellData.FrostResistanceAura
View Source
var HammerOfWrathRankMap = spellData.HammerOfWrath
View Source
var HolyLightRankMap = spellData.HolyLight
View Source
var HolyShieldRankMap = spellData.HolyShield
View Source
var HolyShockRankMap = spellData.HolyShock
View Source
var HolyStrikeRankMap = spellData.HolyStrike
View Source
var HolyWrathRankMap = spellData.HolyWrath
View Source
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

View Source
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.

View Source
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.

View Source
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.

View Source
var LayOnHandsRankMap = spellData.LayOnHands
View Source
var LightsVigilRankMap = spellData.LightsVigil
View Source
var RetributionAuraRankMap = spellData.RetributionAura
View Source
var ShadowResistanceAuraRankMap = spellData.ShadowResistanceAura
View Source
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 NewPaladin(character *core.Character, talentsStr string, _ *proto.PaladinOptions) *Paladin

func (*Paladin) AddPartyBuffs

func (paladin *Paladin) AddPartyBuffs(_ *proto.PartyBuffs)

func (*Paladin) AddRaidBuffs

func (paladin *Paladin) AddRaidBuffs(_ *proto.RaidBuffs)

func (*Paladin) ApplyTalents

func (paladin *Paladin) ApplyTalents()

func (*Paladin) GetCharacter

func (paladin *Paladin) GetCharacter() *core.Character

func (*Paladin) GetPaladin

func (paladin *Paladin) GetPaladin() *Paladin

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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