mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-08-19 17:51:02 +00:00
fix problem on automation.php
This commit is contained in:
@@ -2592,8 +2592,8 @@ $crannyimg = "<img src=\"".GP_LOCATE."img/g/g23.gif\" height=\"20\" width=\"15\"
|
|||||||
if($NonHeroPresent == 0 && $this->getTypeLevel(37,$data['to']) > 0) {
|
if($NonHeroPresent == 0 && $this->getTypeLevel(37,$data['to']) > 0) {
|
||||||
//don't reinforce, addunit instead
|
//don't reinforce, addunit instead
|
||||||
$database->modifyUnit($data['to'],array("hero"),array(1),array(1));
|
$database->modifyUnit($data['to'],array("hero"),array(1),array(1));
|
||||||
$database->modifyHero("wref",$data['to'],$heroid,0);
|
|
||||||
$heroid = $database->getHero($database->getVillageField($data['from'],"owner"),1);
|
$heroid = $database->getHero($database->getVillageField($data['from'],"owner"),1);
|
||||||
|
$database->modifyHero("wref",$data['to'],$heroid,0);
|
||||||
$HeroTransfer = 1;
|
$HeroTransfer = 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user