Update Turret.java

This commit is contained in:
Anuken
2020-08-30 09:34:30 -05:00
committed by GitHub
parent f2cc56ddc8
commit 540a5f30cb

View File

@@ -237,7 +237,7 @@ public abstract class Turret extends Block{
canShoot = unit.isShooting();
}else if(logicControlled()){ //logic behavior
canShoot = logicShooting;
}else if(peekAmmo() != null){ //default AI behavior
}else{ //default AI behavior
BulletType type = peekAmmo();
float speed = type.speed;
//slow bullets never intersect