Skip to content

Commit

Permalink
sim/warrior: fix Shield Wall/Shield Wall glyph
Browse files Browse the repository at this point in the history
Fix damage reduction on Shield Wall. Shield Wall with glyph should
reduce damage by 40% (0.6 damage taken coefficient) and without glyph
by 60% (0.4 damage coeff). Before the patch it was other way around
and was incorrect.

Signed-off-by: Grzegorz Prajsner <grzpra@gmx.com>
  • Loading branch information
grzpra committed Oct 22, 2023
1 parent e12724b commit eb26667
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sim/warrior/shield_wall.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ func (warrior *Warrior) RegisterShieldWallCD() {
duration := time.Second*12 + core.TernaryDuration(warrior.HasSetBonus(ItemSetDreadnaughtPlate, 4), time.Second*3, 0)
hasGlyph := warrior.HasMajorGlyph(proto.WarriorMajorGlyph_GlyphOfShieldWall)
//This is the inverse of the tooltip since it is a damage TAKEN coefficient
damageTaken := core.TernaryFloat64(hasGlyph, 0.4, 0.6)
damageTaken := core.TernaryFloat64(hasGlyph, 0.6, 0.4)

actionID := core.ActionID{SpellID: 871}
swAura := warrior.RegisterAura(core.Aura{
Expand Down

0 comments on commit eb26667

Please sign in to comment.