1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-12 02:28:11 +02:00

Build boat in allied shipyards is allowed now

This commit is contained in:
Andrii Danylchenko 2018-11-17 15:02:47 +02:00
parent 000ca1c823
commit 9a36572446

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);
}