Skip to content

Commit

Permalink
Merge pull request #4130 from wowsims/fixes
Browse files Browse the repository at this point in the history
Fix DK APL breakage
  • Loading branch information
jimmyt857 authored Jan 7, 2024
2 parents 94a51c5 + d5c3a7a commit 5ecc876
Show file tree
Hide file tree
Showing 6 changed files with 1,504 additions and 1,497 deletions.
9 changes: 8 additions & 1 deletion sim/core/apl_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,12 +148,19 @@ func (rot *APLRotation) GetAPLSpell(spellId *proto.ActionID) *Spell {
}
}
} else {
// Prefer spells marked with APL, but fallback to unmarked spells.
var aplSpell *Spell
for _, s := range rot.unit.Spellbook {
if s.ActionID.SameAction(actionID) && s.Flags.Matches(SpellFlagAPL) {
spell = s
aplSpell = s
break
}
}
if aplSpell == nil {
spell = rot.unit.GetSpell(actionID)
} else {
spell = aplSpell
}
}

if spell == nil {
Expand Down
Loading

0 comments on commit 5ecc876

Please sign in to comment.