Skip to content

Commit

Permalink
Merge pull request #4128 from wowsims/fixes
Browse files Browse the repository at this point in the history
Fix bug where APL could select wrong spell, and warlock+warrior tests…
  • Loading branch information
jimmyt857 authored Jan 7, 2024
2 parents 92f2756 + cfececa commit 89237db
Show file tree
Hide file tree
Showing 13 changed files with 2,609 additions and 2,868 deletions.
7 changes: 6 additions & 1 deletion sim/core/apl_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,12 @@ func (rot *APLRotation) GetAPLSpell(spellId *proto.ActionID) *Spell {
}
}
} else {
spell = rot.unit.GetSpell(actionID)
for _, s := range rot.unit.Spellbook {
if s.ActionID.SameAction(actionID) && s.Flags.Matches(SpellFlagAPL) {
spell = s
break
}
}
}

if spell == nil {
Expand Down
Loading

0 comments on commit 89237db

Please sign in to comment.