Browse Source

bug #1872: Small bug fix

tags/v0.10.6^2
Shaun 2 years ago
parent
commit
46a5a6bd07
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/server/components/spellbook/rotationManager.js

+ 1
- 1
src/server/components/spellbook/rotationManager.js View File

@@ -4,7 +4,7 @@ const getDefaultRotationSpell = rotationSpells => {
if (!spells.length)
return;

if (spells.length === 0)
if (spells.length === 1)
return spells[0];

const randomSpell = spells[~~(Math.random() * spells.length)];


Loading…
Cancel
Save