Build weapon

This commit is contained in:
Anuken
2021-12-28 23:54:43 -05:00
parent 37ba8ac66b
commit 3efbf58ab5
6 changed files with 109 additions and 13 deletions

View File

@@ -136,7 +136,7 @@ abstract class UnitComp implements Healthc, Physicsc, Hitboxc, Statusc, Teamc, I
/** @return where the unit wants to look at. */
public float prefRotation(){
if(activelyBuilding()){
if(activelyBuilding() && type.rotateToBuilding){
return angleTo(buildPlan());
}else if(mineTile != null){
return angleTo(mineTile);