Update Session.php

This commit is contained in:
Shadow
2013-12-04 08:24:40 +02:00
parent 3bf50c7b3a
commit db6b3df4b9
+10 -6
View File
@@ -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(){