Fixes bug in last change to input.js. Use target HP to determine attack possibility. Thus gaia buildings and animals are attackable, but not trees/mines/etc.
This was SVN commit r8798.
This commit is contained in:
parent
f2e1443631
commit
637b471769
@ -181,7 +181,7 @@ function getActionInfo(action, target)
|
|||||||
return {"possible": true};
|
return {"possible": true};
|
||||||
break;
|
break;
|
||||||
case "attack":
|
case "attack":
|
||||||
if (entState.attack && (enemyOwned || (gaiaOwned && !targetState.resourceSupply)))
|
if (entState.attack && targetState.hitpoints && (enemyOwned || gaiaOwned))
|
||||||
return {"possible": true};
|
return {"possible": true};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user