Skip to content

Commit

Permalink
Core: Added panic when Custom Rotation is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
TheGroxEmpire committed Apr 16, 2023
1 parent a3096b4 commit 3c27367
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 3c27367

Please sign in to comment.