diff --git a/GameEngine/Automation.php b/GameEngine/Automation.php index b96018d8..ed92fb0f 100644 --- a/GameEngine/Automation.php +++ b/GameEngine/Automation.php @@ -2592,8 +2592,8 @@ $crannyimg = "getTypeLevel(37,$data['to']) > 0) { //don't reinforce, addunit instead $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); + $database->modifyHero("wref",$data['to'],$heroid,0); $HeroTransfer = 1; } }