File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -2024,7 +2024,7 @@ var MagicMaster = (function() { // eslint-disable-line no-unused-vars
20242024 bannedSpells = casterData.spb.dbName().split('|');
20252025
20262026 return _.reduce( (isMU ? school : sphere), (r,s) => {
2027- banned = !(s === 'any' || ((isMU || majorSpells.includes('any') || majorSpells.some(sph => s.startsWith(sph)) || (minorSpells.some(sph => s.startsWith(sph)) && level < 4)) && (isPR || !bannedSpells.includes(s ))));
2027+ banned = !(s === 'any' || ((isMU || majorSpells.includes('any') || majorSpells.some(sph => s.startsWith(sph)) || (minorSpells.some(sph => s.startsWith(sph)) && level < 4)) && (isPR || !bannedSpells.some(sph => s.startsWith(sph) ))));
20282028 specialist = isMU && majorSpells.includes(s);
20292029 specStd = isMU && !majorSpells.includes('any');
20302030 return ((!allowAll && (!r || banned)) ? 0 : (specialist ? 3 : (specStd ? 2 : r)));
Original file line number Diff line number Diff line change @@ -2024,7 +2024,7 @@ var MagicMaster = (function() { // eslint-disable-line no-unused-vars
20242024 bannedSpells = casterData.spb.dbName().split('|');
20252025
20262026 return _.reduce( (isMU ? school : sphere), (r,s) => {
2027- banned = !(s === 'any' || ((isMU || majorSpells.includes('any') || majorSpells.some(sph => s.startsWith(sph)) || (minorSpells.some(sph => s.startsWith(sph)) && level < 4)) && (isPR || !bannedSpells.includes(s ))));
2027+ banned = !(s === 'any' || ((isMU || majorSpells.includes('any') || majorSpells.some(sph => s.startsWith(sph)) || (minorSpells.some(sph => s.startsWith(sph)) && level < 4)) && (isPR || !bannedSpells.some(sph => s.startsWith(sph) ))));
20282028 specialist = isMU && majorSpells.includes(s);
20292029 specStd = isMU && !majorSpells.includes('any');
20302030 return ((!allowAll && (!r || banned)) ? 0 : (specialist ? 3 : (specStd ? 2 : r)));
Original file line number Diff line number Diff line change @@ -2024,7 +2024,7 @@ var MagicMaster = (function() { // eslint-disable-line no-unused-vars
20242024 bannedSpells = casterData.spb.dbName().split('|');
20252025
20262026 return _.reduce( (isMU ? school : sphere), (r,s) => {
2027- banned = !(s === 'any' || ((isMU || majorSpells.includes('any') || majorSpells.some(sph => s.startsWith(sph)) || (minorSpells.some(sph => s.startsWith(sph)) && level < 4)) && (isPR || !bannedSpells.includes(s ))));
2027+ banned = !(s === 'any' || ((isMU || majorSpells.includes('any') || majorSpells.some(sph => s.startsWith(sph)) || (minorSpells.some(sph => s.startsWith(sph)) && level < 4)) && (isPR || !bannedSpells.some(sph => s.startsWith(sph) ))));
20282028 specialist = isMU && majorSpells.includes(s);
20292029 specStd = isMU && !majorSpells.includes('any');
20302030 return ((!allowAll && (!r || banned)) ? 0 : (specialist ? 3 : (specStd ? 2 : r)));
You can’t perform that action at this time.
0 commit comments