def cannotConstruct(self,argsList):
pCity = argsList[0]
eBuilding = argsList[1]
bContinue = argsList[2]
bTestVisible = argsList[3]
bIgnoreCost = argsList[4]
### Factions Mod begins ###: implies Python Callback!
pPlayer = gc.getPlayer(pCity.plot().getOwner())
iCivic = pPlayer.getCivics(gc.getInfoTypeForString("CIVICOPTION_GOVERNMENT"),)
if eBuilding == gc.getInfoTypeForString("BUILDING_KREMLIN"):
if iCivic != gc.getInfoTypeForString("CIVIC_COMMUNISM"):
return True
elif eBuilding == gc.getInfoTypeForString("BUILDING_MAUSOLEUM_OF_MAUSSOLLOS"):
if iCivic != gc.getInfoTypeForString("CIVIC_POLICE_STATE"):
return True
### Factions Mod ends ###
return False