mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-29 23:07:48 +02:00
Build boat in allied shipyards is allowed now
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user