mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-08-12 14:21:03 +00:00
Update Session.php
This commit is contained in:
+10
-6
@@ -155,12 +155,16 @@ class Session {
|
|||||||
$hero+=$he2[0];
|
$hero+=$he2[0];
|
||||||
$hero+=$database->HeroNotInVil($myvill); // check if hero is not in village (come back from attack , raid , etc.)
|
$hero+=$database->HeroNotInVil($myvill); // check if hero is not in village (come back from attack , raid , etc.)
|
||||||
}
|
}
|
||||||
if(!$database->getHeroDead($this->uid) and !$hero){ // check if hero is already dead
|
$yes=true; //fix by ronix
|
||||||
}elseif(!$database->getHeroInRevive($this->uid) and !$hero){ // check if hero is already in revive
|
if($database->getHeroDead($this->uid) and !$hero){ // check if hero is already dead
|
||||||
}elseif(!$database->getHeroInTraining($this->uid) and !$hero){ // check if hero is in training
|
$yes=false;
|
||||||
$database->KillMyHero($this->uid);
|
}elseif($database->getHeroInRevive($this->uid) and !$hero){ // check if hero is already in revive
|
||||||
|
$yes=false;
|
||||||
|
}elseif($database->getHeroInTraining($this->uid) and !$hero){ // check if hero is in training
|
||||||
|
$yes=false;
|
||||||
|
}
|
||||||
|
if($yes and !$hero) $database->KillMyHero($this->uid);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
private function PopulateVar() {
|
private function PopulateVar() {
|
||||||
global $database;
|
global $database;
|
||||||
@@ -196,7 +200,7 @@ class Session {
|
|||||||
if($this->userarray['b4'] > $this->time) {
|
if($this->userarray['b4'] > $this->time) {
|
||||||
$this->bonus4 = 1;
|
$this->bonus4 = 1;
|
||||||
}
|
}
|
||||||
$this->CheckHeroReal();
|
$this->CheckHeroReal();
|
||||||
}
|
}
|
||||||
|
|
||||||
private function SurfControl(){
|
private function SurfControl(){
|
||||||
|
|||||||
Reference in New Issue
Block a user