From d17b295941fb87dfb2707aa99bc9a8e005c224dc Mon Sep 17 00:00:00 2001 From: torbjornhub <13432-torbjornhub@users.noreply.gitgud.io> Date: Sat, 14 Dec 2019 17:52:38 -0800 Subject: [PATCH] Update DefaultRules.js --- src/js/DefaultRules.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/js/DefaultRules.js b/src/js/DefaultRules.js index 4ca41ecf7c4..c658d42a1d0 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.`; + } } } } -- GitLab