Update 1012119.js (#238)

This should fix the Dc.
This commit is contained in:
vince538
2018-08-09 03:31:34 +02:00
committed by Ronan Lana
parent 4c25c07e28
commit fc8eadec30

View File

@@ -24,16 +24,20 @@ function action(mode, type, selection) {
return; return;
} }
if (cm.isQuestActive(22515) || cm.isQuestActive(22516) || cm.isQuestActive(22517) || cm.isQuestActive(22518)) { else if (cm.isQuestActive(22515) || cm.isQuestActive(22516) || cm.isQuestActive(22517) || cm.isQuestActive(22518)) {
cm.sendYesNo("Would you like to go in the special Spore Training Center?"); cm.sendYesNo("Would you like to enter the special Training Center?");
status = 1; status = 1;
} }
else {
var selStr = "Would you like to go into the Training Center?"; var selStr = "Would you like to go into the Training Center?";
for (var i = 0; i < num; i++) { for (var i = 0; i < num; i++) {
selStr += "\r\n#b#L" + i + "#Training Center " + i + " (" + cm.getPlayerCount(map + i) + "/" + maxp + ")#l#k"; selStr += "\r\n#b#L" + i + "#Training Center " + i + " (" + cm.getPlayerCount(map + i) + "/" + maxp + ")#l#k";
} }
cm.sendSimple(selStr); cm.sendSimple(selStr);
}
} else if (status == 1) { } else if (status == 1) {
if (selection < 0 || selection >= num) { if (selection < 0 || selection >= num) {
cm.dispose(); cm.dispose();