Skip to content

Commit

Permalink
Merge pull request #1307 from wowsims/feature/add-trinket-swapping
Browse files Browse the repository at this point in the history
Add back prepull Mastery for secondary trinket swaps during swapped prepull
  • Loading branch information
1337LutZ authored Jan 16, 2025
2 parents c6d999e + bb8dc87 commit e223021
Show file tree
Hide file tree
Showing 7 changed files with 275 additions and 236 deletions.
2 changes: 1 addition & 1 deletion proto/warlock.proto
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ message WarlockOptions {

Summon summon = 1;
bool detonate_seed = 2;
int32 prepull_mastery = 3 [deprecated=true]; // Use Item Swap sets instead
int32 prepull_mastery = 3; // Used for static Mastery Item Swap sets
int32 prepull_post_snapshot_mana = 4 [deprecated=true]; // Use Item Swap sets instead
bool use_item_swap_bonus_stats = 5;
}
Expand Down
2 changes: 1 addition & 1 deletion sim/core/apl.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ func (unit *Unit) newAPLRotation(config *proto.APLRotation) *APLRotation {
}

// If user has Item Swapping enabled and hasn't swapped back to the main set do it here.
if character.ItemSwap.IsEnabled() {
if character != nil && character.ItemSwap.IsEnabled() {
var hasMainSwap bool
for _, prepullAction := range rotation.allPrepullActions() {
if action, ok := prepullAction.impl.(*APLActionItemSwap); ok {
Expand Down
Loading

0 comments on commit e223021

Please sign in to comment.