Skip to content

Commit 8043506

Browse files
committed
Add Doomguard 20% execute mod
1 parent 4d3e250 commit 8043506

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

sim/warlock/doomguard.go

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,12 @@ func (pet *DoomguardPet) ExecuteCustomRotation(sim *core.Simulation) {
9898
}
9999

100100
func (pet *DoomguardPet) registerDoomBolt() {
101+
doomBoltExecuteMod := pet.AddDynamicMod(core.SpellModConfig{
102+
ClassMask: WarlockSpellDoomguardDoomBolt,
103+
Kind: core.SpellMod_DamageDone_Pct,
104+
FloatValue: 0.2,
105+
})
106+
101107
pet.DoomBolt = pet.RegisterSpell(core.SpellConfig{
102108
ActionID: core.ActionID{SpellID: 85692},
103109
SpellSchool: core.SpellSchoolShadow,
@@ -128,4 +134,13 @@ func (pet *DoomguardPet) registerDoomBolt() {
128134
})
129135
},
130136
})
137+
138+
pet.RegisterResetEffect(func(sim *core.Simulation) {
139+
doomBoltExecuteMod.Deactivate()
140+
sim.RegisterExecutePhaseCallback(func(sim *core.Simulation, isExecute int32) {
141+
if isExecute == 20 {
142+
doomBoltExecuteMod.Activate()
143+
}
144+
})
145+
})
131146
}

0 commit comments

Comments
 (0)