Skip to content

Commit

Permalink
[core] revert resetting auraTracker's minExpires when pets are disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
vigo2 committed Oct 18, 2023
1 parent 68dc5e6 commit 84c81f0
Show file tree
Hide file tree
Showing 5 changed files with 527 additions and 528 deletions.
2 changes: 1 addition & 1 deletion sim/core/aura.go
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ func (at *auraTracker) reset(sim *Simulation) {
}

func (at *auraTracker) advance(sim *Simulation) time.Duration {
if at.minExpires > sim.CurrentTime {
if sim.CurrentTime < at.minExpires {
return at.minExpires
}

Expand Down
1 change: 0 additions & 1 deletion sim/core/pet.go
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,6 @@ func (pet *Pet) Disable(sim *Simulation) {
pet.OnPetDisable(sim)
}

pet.auraTracker.minExpires = NeverExpires
sim.removeTracker(&pet.auraTracker)

if sim.Log != nil {
Expand Down
Loading

0 comments on commit 84c81f0

Please sign in to comment.