Build boat in allied shipyards is allowed now

This commit is contained in:
Andrii Danylchenko
2018-11-17 21:58:54 +02:00
parent 000ca1c823
commit 9a36572446
+3 -1
View File
@@ -272,7 +272,9 @@ bool HireHero::applyGh(CGameHandler * gh)
bool BuildBoat::applyGh(CGameHandler * gh)
{
throwOnWrongOwner(gh, objid);
if(gh->getPlayerRelations(gh->getOwner(objid), gh->getPlayerAt(c)) == PlayerRelations::ENEMIES)
throwAndCompain(gh, "Can't build boat at enemy shipyard");
return gh->buildBoat(objid);
}