Fog fixes / Weapon attack fixes / Avert weapon

This commit is contained in:
Anuke
2022-03-05 11:06:28 -05:00
parent c3ce23731d
commit 6983959aeb
8 changed files with 80 additions and 26 deletions

View File

@@ -145,7 +145,7 @@ public class AIController implements UnitController{
float wrange = weapon.range();
//let uncontrollable weapons do their own thing
if(!weapon.controllable) continue;
if(!weapon.controllable || weapon.noAttack) continue;
float mountX = unit.x + Angles.trnsx(rotation, weapon.x, weapon.y),
mountY = unit.y + Angles.trnsy(rotation, weapon.x, weapon.y);