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:
parent
95da3789cd
commit
67f08751f9
@ -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};
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user