Skip to content

Commit

Permalink
Fix Extraplanar Boots
Browse files Browse the repository at this point in the history
  • Loading branch information
rosenrusinov committed Mar 21, 2024
1 parent 20d8bd9 commit 9af59dd
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions sim/common/sod/crafted/phase_1.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,11 @@ func init() {
Duration: time.Second * 6,
OnGain: func(aura *core.Aura, sim *core.Simulation) {
character.PseudoStats.DamageDealtMultiplier *= .7
character.PseudoStats.DamageTakenMultiplier *= .7
},
OnExpire: func(aura *core.Aura, sim *core.Simulation) {
character.PseudoStats.DamageDealtMultiplier /= .7
character.PseudoStats.DamageTakenMultiplier /= .7
},
})

Expand All @@ -51,6 +53,15 @@ func init() {
Spell: activationSpell,
Priority: core.CooldownPriorityLow,
Type: core.CooldownTypeSurvival,
ShouldActivate: func(s *core.Simulation, c *core.Character) bool {
// only activate automatically if we're actually tanking a target
for _, target := range character.Env.Encounter.TargetUnits {
if target.CurrentTarget == &character.Unit {
return true
}
}
return false
},
})
})

Expand Down

0 comments on commit 9af59dd

Please sign in to comment.