forked from 0ad/0ad
let allies build and repair stuff
This was SVN commit r15581.
This commit is contained in:
parent
00b072ea14
commit
c2579c3c22
@ -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;
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user