1
0
forked from 0ad/0ad

Fixes bug where military units that can't collect resources would show an "attack" icon on hovering a resource - instead they should have a default icon

This was SVN commit r8790.
This commit is contained in:
historic_bruno 2010-12-05 06:34:57 +00:00
parent 95da3789cd
commit 67f08751f9

View File

@ -181,7 +181,7 @@ function getActionInfo(action, target)
return {"possible": true};
break;
case "attack":
if (entState.attack && (enemyOwned || gaiaOwned))
if (entState.attack && (enemyOwned || (gaiaOwned && !targetState.resourceSupply)))
return {"possible": true};
}
}