diff --git a/Templates/Build/12_upgrades.tpl b/Templates/Build/12_upgrades.tpl
index bf6e272b..8c33c809 100644
--- a/Templates/Build/12_upgrades.tpl
+++ b/Templates/Build/12_upgrades.tpl
@@ -40,6 +40,9 @@
if($abdata['b'.$j] == 20) {
echo "
".MAXIMUM_LEVEL." | ";
}
+ else if ($building->getTypeLevel(12) <= $abdata['b'.$j]+$ups) {
+ echo "".UPGRADE_BLACKSMITH." | ";
+ }
else if(${'ab'.$i}[$abdata['b'.$j]+1+$ups]['wood'] > $village->maxstore || ${'ab'.$i}[$abdata['b'.$j]+1+$ups]['clay'] > $village->maxstore || ${'ab'.$i}[$abdata['b'.$j]+1+$ups]['iron'] > $village->maxstore) {
echo "".EXPAND_WAREHOUSE." | ";
}
@@ -54,10 +57,7 @@
echo "
".CROP_NEGATIVE."";
}
echo "".TOO_FEW_RESOURCES." | ";
- }
- else if ($building->getTypeLevel(12) <= $abdata['b'.$j]+$ups) {
- echo "".UPGRADE_BLACKSMITH." | ";
- }
+ }
else if ($totalUps == 1 && !$session->plus || $totalUps > 1) {
echo "".UPGRADE_IN_PROGRESS." | ";
}
diff --git a/Templates/Build/13_upgrades.tpl b/Templates/Build/13_upgrades.tpl
index adb4090c..c0c66527 100644
--- a/Templates/Build/13_upgrades.tpl
+++ b/Templates/Build/13_upgrades.tpl
@@ -40,6 +40,9 @@
if($abdata['a'.$j] == 20) {
echo "".MAXIMUM_LEVEL." | ";
}
+ else if ($building->getTypeLevel(13) <= $abdata['a'.$j]+$ups) {
+ echo "".UPGRADE_ARMOURY." | ";
+ }
else if(${'ab'.$i}[$abdata['a'.$j]+1+$ups]['wood'] > $village->maxstore || ${'ab'.$i}[$abdata['a'.$j]+1+$ups]['clay'] > $village->maxstore || ${'ab'.$i}[$abdata['a'.$j]+1+$ups]['iron'] > $village->maxstore) {
echo "".EXPAND_WAREHOUSE." | ";
}
@@ -54,10 +57,7 @@
echo "
".CROP_NEGATIVE."";
}
echo "".TOO_FEW_RESOURCES." | ";
- }
- else if ($building->getTypeLevel(13) <= $abdata['a'.$j]+$ups) {
- echo "".UPGRADE_ARMOURY." | ";
- }
+ }
else if ($totalUps == 1 && !$session->plus || $totalUps > 1) {
echo "".UPGRADE_IN_PROGRESS." | ";
}