/tmra renvoie une tmr aléatoire

This commit is contained in:
Vincent Vandemeulebrouck 2021-03-14 12:53:45 +01:00
parent c281551603
commit ffd7b0b0c1

View File

@ -241,7 +241,7 @@ export class RdDCommands {
getTMRAleatoire(msg, params) {
if (params.length < 2) {
let type = params[0];
const tmr = TMRUtility.getTMRAleatoire(it => it.type == type);
const tmr = TMRUtility.getTMRAleatoire(type ? (it => it.type == type) : (it => true));
RdDCommands._chatAnswer(msg, `Case aléatoire: ${tmr.coord} - ${tmr.label}`);
}
else {