Skip to content
Snippets Groups Projects
Commit df38a32e authored by svornost's avatar svornost
Browse files

Condense logic

parent b9530d85
No related branches found
No related tags found
1 merge request!8322More Fixes
......@@ -16,11 +16,9 @@ App.Facilities.Pit.fight = function(lethal) {
fighters.push(S.Bodyguard.ID, V.pit.slaveFightingBodyguard);
} else {
if (available.length > 0) {
if (S.Bodyguard) {
if (V.pit.bodyguardFights) {
available.delete(S.Bodyguard.ID);
fighters.push(S.Bodyguard.ID);
}
if (S.Bodyguard && V.pit.bodyguardFights) {
available.delete(S.Bodyguard.ID);
fighters.push(S.Bodyguard.ID);
}
if (available.length > 1 && !V.pit.animal) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment