redesign of recruit troops
This commit is contained in:
@@ -132,7 +132,7 @@ window.sendCommand = async function() {
|
||||
|
||||
payload = { building_id };
|
||||
} else if (type === 'recruit') {
|
||||
const unit_id = document.getElementById('unit-select').value;
|
||||
const unit_id = window.selectedUnitId;
|
||||
if (!unit_id) return alert('Παρακαλώ επιλέξτε Μονάδα προς εκπαίδευση.');
|
||||
|
||||
const amount = parseInt(document.getElementById('recruit-amount').value) || 1;
|
||||
|
||||
Reference in New Issue
Block a user