Skip to content

Commit

Permalink
Merge pull request #2947 from TheGroxEmpire/master
Browse files Browse the repository at this point in the history
Core: Added panic when Custom Rotation is empty
  • Loading branch information
TheGroxEmpire authored Apr 16, 2023
2 parents a3096b4 + 3c27367 commit b36b865
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sim/common/custom_rotation.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,10 @@ func (cs *CustomSpell) CPM(sim *core.Simulation) float64 {
}

func (cr *CustomRotation) Cast(sim *core.Simulation) bool {
if cr == nil {
panic("Custom Rotation is empty")
}

spell := cr.ChooseSpell(sim)

if spell == nil {
Expand Down

0 comments on commit b36b865

Please sign in to comment.