Skip to content

Commit

Permalink
Merge pull request #3480 from TheGroxEmpire/master
Browse files Browse the repository at this point in the history
Add stance restriction on Rend, Overpower, and Whirlwind
  • Loading branch information
TheGroxEmpire authored Aug 17, 2023
2 parents 2763fe6 + bff24be commit d38a4f4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion sim/warrior/overpower.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ func (warrior *Warrior) registerOverpowerSpell(cdTimer *core.Timer) {
},
},
ExtraCastCondition: func(sim *core.Simulation, target *core.Unit) bool {
return warrior.OverpowerAura.IsActive()
return warrior.OverpowerAura.IsActive() && warrior.StanceMatches(BattleStance)
},

BonusCritRating: 25 * core.CritRatingPerCritChance * float64(warrior.Talents.ImprovedOverpower),
Expand Down
4 changes: 4 additions & 0 deletions sim/warrior/rend.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ func (warrior *Warrior) RegisterRendSpell(rageThreshold float64, healthThreshold
IgnoreHaste: true,
},

ExtraCastCondition: func(sim *core.Simulation, target *core.Unit) bool {
return warrior.StanceMatches(BattleStance)
},

DamageMultiplier: 1 + 0.1*float64(warrior.Talents.ImprovedRend),
ThreatMultiplier: 1,

Expand Down
3 changes: 3 additions & 0 deletions sim/warrior/whirlwind.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ func (warrior *Warrior) registerWhirlwindSpell() {
Duration: core.TernaryDuration(warrior.HasMajorGlyph(proto.WarriorMajorGlyph_GlyphOfWhirlwind), time.Second*8, time.Second*10),
},
},
ExtraCastCondition: func(sim *core.Simulation, target *core.Unit) bool {
return warrior.StanceMatches(BerserkerStance)
},

DamageMultiplier: 1 *
(1 + 0.02*float64(warrior.Talents.UnendingFury) + 0.1*float64(warrior.Talents.ImprovedWhirlwind)),
Expand Down

0 comments on commit d38a4f4

Please sign in to comment.