Documentation ¶
Index ¶
- Constants
- Variables
- func CopySpellMultipliers(sourceSpell *core.Spell, targetSpell *core.Spell, target *core.Unit)
- type BloodwormPet
- type DeathKnight
- func (dk *DeathKnight) AddPartyBuffs(partyBuffs *proto.PartyBuffs)
- func (dk *DeathKnight) AddRaidBuffs(raidBuffs *proto.RaidBuffs)
- func (dk *DeathKnight) ApplyBloodTalents()
- func (dk *DeathKnight) ApplyFrostTalents()
- func (dk *DeathKnight) ApplyGlyphs()
- func (dk *DeathKnight) ApplyTalents()
- func (dk *DeathKnight) ApplyUnholyTalents()
- func (dk *DeathKnight) DiseasesAreActive(target *core.Unit) bool
- func (dk *DeathKnight) GetCharacter() *core.Character
- func (dk *DeathKnight) GetDeathKnight() *DeathKnight
- func (dk *DeathKnight) GetDiseaseMulti(target *core.Unit, base float64, increase float64) float64
- func (dk *DeathKnight) HasMajorGlyph(glyph proto.DeathKnightMajorGlyph) bool
- func (dk *DeathKnight) HasMinorGlyph(glyph proto.DeathKnightMinorGlyph) bool
- func (dk *DeathKnight) HasPrimeGlyph(glyph proto.DeathKnightPrimeGlyph) bool
- func (dk *DeathKnight) Initialize()
- func (dk *DeathKnight) NewArmyGhoulPet(_ int) *GhoulPet
- func (dk *DeathKnight) NewBloodwormPet(_ int) *BloodwormPet
- func (dk *DeathKnight) NewGargoyle() *GargoylePet
- func (dk *DeathKnight) NewGhoulPet(permanent bool) *GhoulPet
- func (dk *DeathKnight) NewRuneWeapon() *RuneWeaponPet
- func (dk *DeathKnight) Reset(sim *core.Simulation)
- func (dk *DeathKnight) SetupGhoul(ghoulPet *GhoulPet, apScaling float64)
- func (dk *DeathKnight) ThreatOfThassarianProc(sim *core.Simulation, result *core.SpellResult, ohSpell *core.Spell)
- type DeathKnightAgent
- type DeathKnightInputs
- type GargoylePet
- type GhoulPet
- type RuneWeaponPet
- func (runeWeapon *RuneWeaponPet) AddCopySpell(actionId core.ActionID, spell *core.Spell)
- func (runeWeapon *RuneWeaponPet) DiseasesAreActive(target *core.Unit) bool
- func (runeWeapon *RuneWeaponPet) ExecuteCustomRotation(_ *core.Simulation)
- func (runeWeapon *RuneWeaponPet) GetDiseaseMulti(target *core.Unit, base float64, increase float64) float64
- func (runeWeapon *RuneWeaponPet) GetPet() *core.Pet
- func (runeWeapon *RuneWeaponPet) Initialize()
- func (runeWeapon *RuneWeaponPet) Reset(_ *core.Simulation)
Constants ¶
View Source
const ( PetSpellHitScale = 17.0 / 8.0 * core.SpellHitRatingPerHitChance / core.MeleeHitRatingPerHitChance // 1.7 PetExpertiseScale = 3.25 * core.ExpertisePerQuarterPercentReduction / core.MeleeHitRatingPerHitChance // 0.8125 )
View Source
const ( DDBC_MercilessCombat int = 0 DDBC_EbonPlaguebringer = iota DDBC_RuneOfRazorice DDBC_Total )
Damage Done By Caster setup
View Source
const ( DeathKnightSpellFlagNone int64 = 0 DeathKnightSpellIcyTouch int64 = 1 << iota DeathKnightSpellDeathCoil DeathKnightSpellDeathAndDecay DeathKnightSpellOutbreak DeathKnightSpellEmpowerRuneWeapon DeathKnightSpellUnholyFrenzy DeathKnightSpellDarkTransformation DeathKnightSpellSummonGargoyle DeathKnightSpellArmyOfTheDead DeathKnightSpellRaiseDead DeathKnightSpellBloodTap DeathKnightSpellObliterate DeathKnightSpellFrostStrike DeathKnightSpellRuneStrike DeathKnightSpellPlagueStrike DeathKnightSpellFesteringStrike DeathKnightSpellScourgeStrike DeathKnightSpellScourgeStrikeShadow DeathKnightSpellHeartStrike DeathKnightSpellDeathStrike DeathKnightSpellDeathStrikeHeal DeathKnightSpellFrostFever DeathKnightSpellBloodPlague DeathKnightSpellHowlingBlast DeathKnightSpellHornOfWinter DeathKnightSpellPillarOfFrost DeathKnightSpellPestilence DeathKnightSpellBloodBoil DeathKnightSpellRuneTap DeathKnightSpellVampiricBlood DeathKnightSpellIceboundFortitude DeathKnightSpellBoneShield DeathKnightSpellDancingRuneWeapon DeathKnightSpellDeathPact DeathKnightSpellKillingMachine // Used to react to km procs DeathKnightSpellConvertToDeathRune // Used to react to death rune gains DeathKnightSpellLast DeathKnightSpellsAll = DeathKnightSpellLast<<1 - 1 DeathKnightSpellDisease = DeathKnightSpellFrostFever | DeathKnightSpellBloodPlague )
View Source
const ( GhoulSpellNone int64 = 0 GhoulSpellClaw int64 = 1 << iota GhoulSpellLast GhoulSpellsAll = DeathKnightSpellLast<<1 - 1 )
View Source
const DeathKnightChillOfTheGrave = DeathKnightSpellIcyTouch | DeathKnightSpellHowlingBlast | DeathKnightSpellObliterate
View Source
const DeathKnightSpellMercilessCombat = DeathKnightSpellIcyTouch | DeathKnightSpellObliterate | DeathKnightSpellFrostStrike | DeathKnightSpellHowlingBlast
Variables ¶
View Source
var BloodBoilActionID = core.ActionID{SpellID: 48721}
View Source
var DeathCoilActionID = core.ActionID{SpellID: 47541}
View Source
var DeathStrikeActionID = core.ActionID{SpellID: 49998}
TODO: Cleanup death strike the same way we did for plague strike
View Source
var FesteringStrikeActionID = core.ActionID{SpellID: 85948}
View Source
var HowlingBlastActionID = core.ActionID{SpellID: 49184}
View Source
var IcyTouchActionID = core.ActionID{SpellID: 45477}
View Source
var ItemSetMagmaPlatedBattlearmor = core.NewItemSet(core.ItemSet{ Name: "Magma Plated Battlearmor", Bonuses: map[int32]core.ApplyEffect{ 2: func(agent core.Agent) { agent.GetCharacter().AddStaticMod(core.SpellModConfig{ Kind: core.SpellMod_DamageDone_Flat, ClassMask: DeathKnightSpellDeathStrike, FloatValue: 0.05, }) }, 4: func(agent core.Agent) { }, }, })
View Source
var ItemSetMagmaPlatedBattlegear = core.NewItemSet(core.ItemSet{ Name: "Magma Plated Battlegear", Bonuses: map[int32]core.ApplyEffect{ 2: func(agent core.Agent) { agent.GetCharacter().AddStaticMod(core.SpellModConfig{ Kind: core.SpellMod_BonusCrit_Rating, ClassMask: DeathKnightSpellDeathCoil | DeathKnightSpellFrostStrike, FloatValue: 5 * core.CritRatingPerCritChance, }) }, 4: func(agent core.Agent) { character := agent.GetCharacter() apDep := make([]*stats.StatDependency, 3) for i := 1; i <= 3; i++ { apDep[i-1] = character.NewDynamicMultiplyStat(stats.AttackPower, 1.0+float64(i)*0.01) } aura := character.GetOrRegisterAura(core.Aura{ Label: "Death Eater", ActionID: core.ActionID{SpellID: 90507}, Duration: time.Second * 30, MaxStacks: 3, OnStacksChange: func(aura *core.Aura, sim *core.Simulation, oldStacks, newStacks int32) { if oldStacks > 0 { character.DisableDynamicStatDep(sim, apDep[oldStacks-1]) } if newStacks > 0 { character.EnableDynamicStatDep(sim, apDep[newStacks-1]) } }, }) core.MakeProcTriggerAura(&agent.GetCharacter().Unit, core.ProcTrigger{ Name: "Magma Plated Battlegear", Callback: core.CallbackOnCastComplete, ClassSpellMask: DeathKnightSpellConvertToDeathRune | DeathKnightSpellKillingMachine, ICD: time.Millisecond * 10, Handler: func(sim *core.Simulation, spell *core.Spell, result *core.SpellResult) { aura.Activate(sim) aura.AddStack(sim) }, }) }, }, })
View Source
var OutbreakActionID = core.ActionID{SpellID: 77575}
View Source
var PestilenceActionID = core.ActionID{SpellID: 50842}
View Source
var PlagueStrikeActionID = core.ActionID{SpellID: 45462}
View Source
var RuneStrikeActionID = core.ActionID{SpellID: 56815}
View Source
var RuneTapActionID = core.ActionID{SpellID: 48982}
View Source
var TalentTreeSizes = [3]int{20, 20, 20}
Functions ¶
Types ¶
type BloodwormPet ¶
func (*BloodwormPet) ExecuteCustomRotation ¶
func (bloodworm *BloodwormPet) ExecuteCustomRotation(_ *core.Simulation)
func (*BloodwormPet) GetPet ¶
func (bloodworm *BloodwormPet) GetPet() *core.Pet
func (*BloodwormPet) Initialize ¶
func (bloodworm *BloodwormPet) Initialize()
func (*BloodwormPet) Reset ¶
func (bloodworm *BloodwormPet) Reset(_ *core.Simulation)
type DeathKnight ¶
type DeathKnight struct { core.Character Talents *proto.DeathKnightTalents ClassSpellScaling float64 Inputs DeathKnightInputs // Pets Ghoul *GhoulPet Gargoyle *GargoylePet ArmyGhoul []*GhoulPet RuneWeapon *RuneWeaponPet Bloodworm []*BloodwormPet // Diseases FrostFeverSpell *core.Spell BloodPlagueSpell *core.Spell EbonPlagueAura core.AuraArray ScarletFeverAura core.AuraArray }
func NewDeathKnight ¶
func NewDeathKnight(character *core.Character, inputs DeathKnightInputs, talents string, deathRuneConvertSpellId int32) *DeathKnight
func (*DeathKnight) AddPartyBuffs ¶
func (dk *DeathKnight) AddPartyBuffs(partyBuffs *proto.PartyBuffs)
func (*DeathKnight) AddRaidBuffs ¶
func (dk *DeathKnight) AddRaidBuffs(raidBuffs *proto.RaidBuffs)
func (*DeathKnight) ApplyBloodTalents ¶
func (dk *DeathKnight) ApplyBloodTalents()
func (*DeathKnight) ApplyFrostTalents ¶
func (dk *DeathKnight) ApplyFrostTalents()
func (*DeathKnight) ApplyGlyphs ¶
func (dk *DeathKnight) ApplyGlyphs()
func (*DeathKnight) ApplyTalents ¶
func (dk *DeathKnight) ApplyTalents()
func (*DeathKnight) ApplyUnholyTalents ¶
func (dk *DeathKnight) ApplyUnholyTalents()
func (*DeathKnight) DiseasesAreActive ¶
func (dk *DeathKnight) DiseasesAreActive(target *core.Unit) bool
func (*DeathKnight) GetCharacter ¶
func (dk *DeathKnight) GetCharacter() *core.Character
func (*DeathKnight) GetDeathKnight ¶
func (dk *DeathKnight) GetDeathKnight() *DeathKnight
func (*DeathKnight) GetDiseaseMulti ¶
func (*DeathKnight) HasMajorGlyph ¶
func (dk *DeathKnight) HasMajorGlyph(glyph proto.DeathKnightMajorGlyph) bool
func (*DeathKnight) HasMinorGlyph ¶
func (dk *DeathKnight) HasMinorGlyph(glyph proto.DeathKnightMinorGlyph) bool
func (*DeathKnight) HasPrimeGlyph ¶
func (dk *DeathKnight) HasPrimeGlyph(glyph proto.DeathKnightPrimeGlyph) bool
func (*DeathKnight) Initialize ¶
func (dk *DeathKnight) Initialize()
func (*DeathKnight) NewArmyGhoulPet ¶
func (dk *DeathKnight) NewArmyGhoulPet(_ int) *GhoulPet
func (*DeathKnight) NewBloodwormPet ¶
func (dk *DeathKnight) NewBloodwormPet(_ int) *BloodwormPet
func (*DeathKnight) NewGargoyle ¶
func (dk *DeathKnight) NewGargoyle() *GargoylePet
func (*DeathKnight) NewGhoulPet ¶
func (dk *DeathKnight) NewGhoulPet(permanent bool) *GhoulPet
func (*DeathKnight) NewRuneWeapon ¶
func (dk *DeathKnight) NewRuneWeapon() *RuneWeaponPet
func (*DeathKnight) Reset ¶
func (dk *DeathKnight) Reset(sim *core.Simulation)
func (*DeathKnight) SetupGhoul ¶
func (dk *DeathKnight) SetupGhoul(ghoulPet *GhoulPet, apScaling float64)
func (*DeathKnight) ThreatOfThassarianProc ¶
func (dk *DeathKnight) ThreatOfThassarianProc(sim *core.Simulation, result *core.SpellResult, ohSpell *core.Spell)
type DeathKnightAgent ¶
type DeathKnightAgent interface {
GetDeathKnight() *DeathKnight
}
type DeathKnightInputs ¶
type GargoylePet ¶
type GargoylePet struct { core.Pet GargoyleStrike *core.Spell // contains filtered or unexported fields }
func (*GargoylePet) ExecuteCustomRotation ¶
func (garg *GargoylePet) ExecuteCustomRotation(sim *core.Simulation)
func (*GargoylePet) GetPet ¶
func (garg *GargoylePet) GetPet() *core.Pet
func (*GargoylePet) Initialize ¶
func (garg *GargoylePet) Initialize()
func (*GargoylePet) Reset ¶
func (garg *GargoylePet) Reset(_ *core.Simulation)
type GhoulPet ¶
type GhoulPet struct { core.Pet DarkTransformationAura *core.Aura Claw *core.Spell // contains filtered or unexported fields }
func (*GhoulPet) ExecuteCustomRotation ¶
func (ghoulPet *GhoulPet) ExecuteCustomRotation(sim *core.Simulation)
func (*GhoulPet) Initialize ¶
func (ghoulPet *GhoulPet) Initialize()
func (*GhoulPet) Reset ¶
func (ghoulPet *GhoulPet) Reset(_ *core.Simulation)
type RuneWeaponPet ¶
type RuneWeaponPet struct { core.Pet // Diseases FrostFeverSpell *core.Spell BloodPlagueSpell *core.Spell // contains filtered or unexported fields }
func (*RuneWeaponPet) AddCopySpell ¶
func (runeWeapon *RuneWeaponPet) AddCopySpell(actionId core.ActionID, spell *core.Spell)
func (*RuneWeaponPet) DiseasesAreActive ¶
func (runeWeapon *RuneWeaponPet) DiseasesAreActive(target *core.Unit) bool
func (*RuneWeaponPet) ExecuteCustomRotation ¶
func (runeWeapon *RuneWeaponPet) ExecuteCustomRotation(_ *core.Simulation)
func (*RuneWeaponPet) GetDiseaseMulti ¶
func (*RuneWeaponPet) GetPet ¶
func (runeWeapon *RuneWeaponPet) GetPet() *core.Pet
func (*RuneWeaponPet) Initialize ¶
func (runeWeapon *RuneWeaponPet) Initialize()
func (*RuneWeaponPet) Reset ¶
func (runeWeapon *RuneWeaponPet) Reset(_ *core.Simulation)
Source Files ¶
- anti_magic_shell.go
- army_of_the_dead.go
- blood_boil.go
- blood_tap.go
- bloodworm_pet.go
- bone_shield.go
- dancing_rune_weapon.go
- death_and_decay.go
- death_coil.go
- death_knight.go
- death_pact.go
- death_strike.go
- diseases.go
- empower_rune_weapon.go
- festering_strike.go
- ghoul_pet.go
- glyphs.go
- horn_of_winter.go
- howling_blast.go
- icebound_fortitude.go
- icy_touch.go
- items.go
- obliterate.go
- pestilence.go
- pillar_of_frost.go
- plague_strike.go
- presences.go
- raise_dead.go
- rune_strike.go
- rune_tap.go
- runeforging.go
- summon_gargoyle.go
- talents_blood.go
- talents_frost.go
- talents_unholy.go
- unholy_frenzy.go
- vampiric_blood.go
Click to show internal directories.
Click to hide internal directories.