mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-07-13 08:06:06 +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;
|
global $database;
|
||||||
|
if (!mode) {
|
||||||
$getenforce=$database->getEnforceVillage($wref,0);
|
$getenforce=$database->getEnforceVillage($wref,0);
|
||||||
foreach($getenforce as $enforce) {
|
foreach($getenforce as $enforce) {
|
||||||
$this->processReturnTroops($enforce);
|
$this->processReturnTroops($enforce);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
//check oasis
|
//check oasis
|
||||||
$getenforce1=$database->getOasisEnforce($wref,1);
|
$getenforce1=$database->getOasisEnforce($wref,1);
|
||||||
foreach($getenforce1 as $enforce) {
|
foreach($getenforce1 as $enforce) {
|
||||||
|
|||||||
Reference in New Issue
Block a user