Skip to content

Commit

Permalink
Merge pull request #1071 from hillerstorm/prot_pala_t13
Browse files Browse the repository at this point in the history
[Paladin] Add prot pala T13 and reduce ret test complexity
  • Loading branch information
hillerstorm authored Oct 2, 2024
2 parents 8d3d70a + 202614b commit 985eea3
Show file tree
Hide file tree
Showing 3 changed files with 138 additions and 12,566 deletions.
37 changes: 37 additions & 0 deletions sim/paladin/items.go
Original file line number Diff line number Diff line change
Expand Up @@ -185,3 +185,40 @@ var ItemSetBattlearmorOfImmolation = core.NewItemSet(core.ItemSet{
},
},
})

// Tier 13 prot
var ItemSetArmorOfRadiantGlory = core.NewItemSet(core.ItemSet{
Name: "Armor of Radiant Glory",
Bonuses: map[int32]core.ApplyEffect{
2: func(agent core.Agent) {
paladin := agent.(PaladinAgent).GetPaladin()

actionID := core.ActionID{SpellID: 105801}
duration := time.Second * 6

shieldStrength := 0.0
shield := paladin.NewDamageAbsorptionAura("Delayed Judgement", actionID, duration, func(unit *core.Unit) float64 {
return shieldStrength
})

core.MakeProcTriggerAura(&paladin.Unit, core.ProcTrigger{
Name: "Delayed Judgement Proc",
Callback: core.CallbackOnSpellHitDealt,
ClassSpellMask: SpellMaskJudgement,
Outcome: core.OutcomeLanded,

ProcChance: 1,

Handler: func(sim *core.Simulation, spell *core.Spell, result *core.SpellResult) {
shieldStrength = result.Damage * 0.25
if shieldStrength > 1 {
shield.Activate(sim)
}
},
})
},
4: func(agent core.Agent) {
// Divine Guardian not implemented since it's a raid cooldown and doesn't affect the Paladin
},
},
})
Loading

0 comments on commit 985eea3

Please sign in to comment.