Fixed #3352 / Fixed #3355 / Quad sounds

This commit is contained in:
Anuken
2020-11-11 17:12:42 -05:00
parent cf4f912cef
commit 538f1d7330
8 changed files with 23 additions and 7 deletions

View File

@@ -199,11 +199,14 @@ public class LExecutor{
//bind to the next unit
exec.setconst(varUnit, seq.get(index));
}
index ++;
index++;
}else{
//no units of this type found
exec.setconst(varUnit, null);
}
}else if(exec.obj(type) instanceof Unit u && u.team == exec.team){
//bind to specific unit object
exec.setconst(varUnit, u);
}else{
exec.setconst(varUnit, null);
}