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:
parent
000ca1c823
commit
9a36572446
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user