Misc minor bugfixes
This commit is contained in:
@@ -1331,8 +1331,7 @@ public class LExecutor{
|
||||
if(exec.obj(type) instanceof UnitType type && !type.hidden && t != null && Units.canCreate(t, type)){
|
||||
//random offset to prevent stacking
|
||||
var unit = type.spawn(t, World.unconv(exec.numf(x)) + Mathf.range(0.01f), World.unconv(exec.numf(y)) + Mathf.range(0.01f));
|
||||
unit.rotation = exec.numf(rotation);
|
||||
spawner.spawnEffect(unit);
|
||||
spawner.spawnEffect(unit, exec.numf(rotation));
|
||||
exec.setobj(result, unit);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user