mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-07-03 02:54:21 +00:00
refactor: OOP code movements started :)
This commit is contained in:
@@ -110,7 +110,7 @@ class Building {
|
||||
public function canBuild($id,$tid) {
|
||||
global $village,$session,$database;
|
||||
$demolition = $database->getDemolition($village->wid);
|
||||
if($demolition[0]['buildnumber']==$id) { return 11; }
|
||||
if((isset($demolition[0])) && $demolition[0]['buildnumber']==$id) { return 11; }
|
||||
if($this->isMax($tid,$id)) {
|
||||
return 1;
|
||||
} else if($this->isMax($tid,$id,1) && ($this->isLoop($id) || $this->isCurrent($id))) {
|
||||
|
||||
Reference in New Issue
Block a user