mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-06-28 00:24:23 +00:00
Update Units.php
This commit is contained in:
@@ -242,13 +242,14 @@ class Units {
|
||||
|
||||
}
|
||||
|
||||
public function returnTroops($wref) {
|
||||
public function returnTroops($wref,$mode=0) {
|
||||
global $database;
|
||||
|
||||
$getenforce=$database->getEnforceVillage($wref,0);
|
||||
foreach($getenforce as $enforce) {
|
||||
$this->processReturnTroops($enforce);
|
||||
}
|
||||
if (!mode) {
|
||||
$getenforce=$database->getEnforceVillage($wref,0);
|
||||
foreach($getenforce as $enforce) {
|
||||
$this->processReturnTroops($enforce);
|
||||
}
|
||||
}
|
||||
//check oasis
|
||||
$getenforce1=$database->getOasisEnforce($wref,1);
|
||||
foreach($getenforce1 as $enforce) {
|
||||
|
||||
Reference in New Issue
Block a user