how do i make unit requirements apply to a unit SOLD by a building? i want to make it be like YOU need to have Y building before you can buy X unit from the shop.
do it like..unit enters the map..
unit type=your unit..
owner of unit has upgrade (dummy upgrade) equal to false..
remove unit and give back the gold..
maybe restock the unit in the shop