Logic rule instruction / Lock erekir proc sectors

This commit is contained in:
Anuken
2022-02-10 09:36:31 -05:00
parent 63ef847690
commit 04c2bbc24d
16 changed files with 179 additions and 17 deletions

View File

@@ -894,6 +894,11 @@ public class MobileInput extends InputHandler implements GestureListener{
unit.lookAt(unit.prefRotation());
}
//validate payload, if it's a destroyed unit/building, remove it
if(payloadTarget instanceof Healthc h && !h.isValid()){
payloadTarget = null;
}
if(payloadTarget != null && unit instanceof Payloadc pay){
targetPos.set(payloadTarget);
attractDst = 0f;