let allies build and repair stuff

This was SVN commit r15581.
This commit is contained in:
sanderd17 2014-07-29 15:57:42 +00:00
parent 00b072ea14
commit c2579c3c22

View File

@ -163,7 +163,7 @@ var unitActions =
},
"getActionInfo": function(entState, targetState)
{
if (targetState.foundation && entState.buildEntities && playerCheck(entState, targetState, ["Player"]))
if (targetState.foundation && entState.buildEntities && playerCheck(entState, targetState, ["Player", "Ally"]))
return {"possible": true};
return false;
},
@ -186,7 +186,7 @@ var unitActions =
},
"getActionInfo": function(entState, targetState)
{
if (entState.buildEntities && targetState.needsRepair && playerCheck(entState, targetState, ["Player"]))
if (entState.buildEntities && targetState.needsRepair && playerCheck(entState, targetState, ["Player", "Ally"]))
return {"possible": true};
return false;
},