Skip to content

Commit

Permalink
Merge pull request #731 from wowsims/fixes
Browse files Browse the repository at this point in the history
Fix battle shout
  • Loading branch information
jimmyt857 authored Aug 21, 2022
2 parents 1b4718a + 41be5d8 commit 5915d0e
Show file tree
Hide file tree
Showing 4 changed files with 139 additions and 143 deletions.
10 changes: 3 additions & 7 deletions sim/core/buffs.go
Original file line number Diff line number Diff line change
Expand Up @@ -190,14 +190,10 @@ func applyBuffEffects(agent Agent, raidBuffs proto.RaidBuffs, partyBuffs proto.P
}

if raidBuffs.BattleShout > 0 || individualBuffs.BlessingOfMight > 0 {
bonusAP := 550 * GetTristateValueFloat(raidBuffs.BattleShout, 1, 1.25)
bomAP := 550 * GetTristateValueFloat(individualBuffs.BlessingOfMight, 1, 1.25)
if bomAP > bonusAP {
bonusAP = bomAP
}
bonusAP := 550 * GetTristateValueFloat(MaxTristate(raidBuffs.BattleShout, individualBuffs.BlessingOfMight), 1, 1.25)
character.AddStats(stats.Stats{
stats.AttackPower: math.Floor(bomAP),
stats.RangedAttackPower: math.Floor(bomAP),
stats.AttackPower: math.Floor(bonusAP),
stats.RangedAttackPower: math.Floor(bonusAP),
})
}
character.AddStats(stats.Stats{
Expand Down
Loading

0 comments on commit 5915d0e

Please sign in to comment.