diff --git a/src/js/DefaultRules.js b/src/js/DefaultRules.js index 4ca41ecf7c45dfaf4038660bee15d7bd31ddc665..c658d42a1d088b0ada88ffabbdb407cb151d4a7a 100644 --- a/src/js/DefaultRules.js +++ b/src/js/DefaultRules.js @@ -1,4 +1,4 @@ -// this code applies RA rules onto slaves +pit// this code applies RA rules onto slaves window.DefaultRules = (function() { "use strict"; @@ -1521,16 +1521,16 @@ window.DefaultRules = (function() { * @param {App.RA.RuleSetters} rule */ - function ProcessPit(slave,rule){ + function ProcessPit(slave,rule){ if (rule.pitRules !== undefined && rule.pitRules !== null){ if (V.pit > 0){ - if (rule.pitRules===0){ - V.fighterIDs = V.fighterIDs.filter(e => e !== slave.ID); - r += `<br>${slave.slaveName} has been automatically unassigned from the pit.`; - }else{ - V.fighterIDs.push(slave.ID); - r += `<br>${slave.slaveName} has been automatically assigned to fight in the pit.`; - } + if (rule.pitRules===0){ + V.fighterIDs = V.fighterIDs.filter(e => e !== slave.ID); + r += `<br>${slave.slaveName} has been automatically unassigned from the pit.`; + }else{ + V.fighterIDs.push(slave.ID); + r += `<br>${slave.slaveName} has been automatically assigned to fight in the pit.`; + } } } }